From: Catalin Marinas Date: Mon, 8 May 2006 20:21:22 +0000 (+0100) Subject: Fix git.reset() to remove the added files X-Git-Tag: v0.10~21 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/9cfad9525f37ffe57edefe112982c46187a02ff6?hp=9cfad9525f37ffe57edefe112982c46187a02ff6 Fix git.reset() to remove the added files The combination of git-read-tree and git-checkout-index used in the git.checkout() function doesn't remove the files added to the index. This patch adds the file removal support to the git.reset() function. It also changes the git.apply_diff() call in stack.Series.merged_patches() so that the the index is always updated (otherwise the reset wouldn't know which files to remove). Signed-off-by: Catalin Marinas ---