chiark / gitweb /
Fix the 'status --reset' for individual files
[stgit] / stgit / git.py
index 61436bb8abe19a492d7564d9013a215860f33641..582e803628fb6d10ee058b4c8562f582d735e9ef 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
     """