~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a 'show' command
[stgit]
/
stgit
/
git.py
diff --git
a/stgit/git.py
b/stgit/git.py
index
71bddca
..
adad46f
100644
(file)
--- a/
stgit/git.py
+++ b/
stgit/git.py
@@
-598,6
+598,12
@@
def barefiles(rev1, rev2):
return result.rstrip()
return result.rstrip()
+def pretty_commit(commit_id = 'HEAD'):
+ """Return a given commit (log + diff)
+ """
+ return _output(['git-diff-tree', '--cc', '--always', '--pretty', '-r',
+ commit_id])
+
def checkout(files = None, tree_id = None, force = False):
"""Check out the given or all files
"""
def checkout(files = None, tree_id = None, force = False):
"""Check out the given or all files
"""