aboutsummaryrefslogtreecommitdiffstats
path: root/git_deps/gitutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'git_deps/gitutils.py')
-rw-r--r--git_deps/gitutils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/git_deps/gitutils.py b/git_deps/gitutils.py
index f5d8281..ce80ad5 100644
--- a/git_deps/gitutils.py
+++ b/git_deps/gitutils.py
@@ -49,6 +49,10 @@ class GitUtils(object):
return out
@classmethod
+ def oneline(cls, commit):
+ return commit.message.split('\n', 1)[0]
+
+ @classmethod
def refs_to(cls, sha1, repo):
"""Returns all refs pointing to the given SHA1."""
matching = []