chiark
/
gitweb
/
~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix the 'status --reset' for individual files
[stgit]
/
stgit
/
git.py
diff --git
a/stgit/git.py
b/stgit/git.py
index 61436bb8abe19a492d7564d9013a215860f33641..582e803628fb6d10ee058b4c8562f582d735e9ef 100644
(file)
--- 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
"""