Fix git.reset() to remove the added files
authorCatalin Marinas <catalin.marinas@gmail.com>
Mon, 8 May 2006 20:21:22 +0000 (21:21 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Mon, 8 May 2006 20:21:22 +0000 (21:21 +0100)
commit9cfad9525f37ffe57edefe112982c46187a02ff6
treec5b96a03cd133474d3a02f40a98e80bc8d9163c3
parent56df21ed4cf5230924b5b6bd69b138da904758d0
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 <catalin.marinas@gmail.com>
stgit/git.py
stgit/stack.py