Commit d6cb41f8 authored by Georges Racinet on mutations.racinet.fr's avatar Georges Racinet on mutations.racinet.fr
Browse files

Git: utility method to read shas

parent 94813596a46e
......@@ -103,3 +103,6 @@ class LocalRepo(object):
def graphlog(self):
return self.git('log', '--all', '--graph')
def sha(self, ref):
return self.git('log', '--pretty=%H', '-n1', ref).strip()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment