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