From 15de5ae14f1c76adac52ca5633a679fba79a877c Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Thu, 19 Jan 2006 15:01:29 +0000 Subject: [PATCH] Fix the 'status --reset' for individual files By default, status --reset calls resolved which updates the tree index and the git-checkout-index -f does not overwrite the files anymore. This patch explicitely resets the files to the HEAD tree id. Signed-off-by: Catalin Marinas --- stgit/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stgit/git.py b/stgit/git.py index 61436bb..582e803 100644 --- a/stgit/git.py +++ b/stgit/git.py @@ -599,7 +599,7 @@ def switch(tree_id): __set_head(tree_id) -def reset(files = None, tree_id = None): +def reset(files = None, tree_id = 'HEAD'): """Revert the tree changes relative to the given tree_id. It removes any local changes """ -- 2.11.0