raise GitException, 'Unknown revision: %s' % git_id
def branch_exists(branch):
- """Existance check for the named branch
+ """Existence check for the named branch
"""
for line in _output_lines(['git-rev-parse', '--symbolic', '--all']):
if line.strip() == branch:
__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
"""