~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add support for git-rev-parse
[stgit]
/
stgit
/
git.py
diff --git
a/stgit/git.py
b/stgit/git.py
index
7ab9aef
..
cc0ae79
100644
(file)
--- a/
stgit/git.py
+++ b/
stgit/git.py
@@
-233,6
+233,11
@@
def __set_head(val):
"""
write_string(head_link, val)
+def rev_parse(git_id):
+ """Parse the string and return an SHA1 id
+ """
+ _output(['git-rev-parse', git_id])
+
def add(names):
"""Add the files or recursively add the directory contents
"""