Fix the 'status --reset' for individual files
authorCatalin Marinas <catalin.marinas@gmail.com>
Thu, 19 Jan 2006 15:01:29 +0000 (15:01 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Sat, 21 Jan 2006 22:54:13 +0000 (22:54 +0000)
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 <catalin.marinas@gmail.com>
stgit/git.py

index 61436bb..582e803 100644 (file)
@@ -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
     """