stg rebase must delete stale files
commit8fa67dab95957e11fdb270d9ec19593a5ceda8a0
authorCatalin Marinas <catalin.marinas@gmail.com>
Wed, 6 Dec 2017 16:27:11 +0000 (6 16:27 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Mon, 29 Jan 2018 11:15:50 +0000 (29 11:15 +0000)
tree9158689c4c7bf97382c33855360e0032f5253710
parent0795deb8df2717a952b7f6c04b27ec815a61a828
stg rebase must delete stale files

The old git.rebase() implementation uses 'git checkout-index' which does
not delete the stale files after resetting the tree to a new tree_id.
This patch changes the git.checkout() implementation to user 'git
read-tree --reset -u' directly, together with some cleanup of the
related function arguments.

Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/git.py