]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: extract helper to update active_cache_tree
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 3 May 2018 23:01:15 +0000 (01:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 6 May 2018 04:21:57 +0000 (13:21 +0900)
commitba97aea1659e249a3a58ecc5f583ee2056a90ad8
treea80826ae4f3bb204caef2bbff08a0f29e471e628
parent25cff9f109afbd6d21b199a38d15911b1f0c5069
sequencer: extract helper to update active_cache_tree

This patch extracts the code from is_index_unchanged() to initialize or
update the index' cache tree (i.e. a tree object reflecting the current
index' top-level tree).

The new helper will be used in the upcoming code to support `git rebase
-i --root` via the sequencer.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c