X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/6fe6b1bd5137323248b696989c41ebb7b98514cc..b8a0986f754570589675e7003d06b78bdd290a02:/stgit/git.py diff --git a/stgit/git.py b/stgit/git.py index 7ab9aef..a45671b 100644 --- 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 + """ + return _output(['git-rev-parse', git_id]).strip() + def add(names): """Add the files or recursively add the directory contents """