~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git.pretty_commit() re-implemented with "git show" (bug #10018)
[stgit]
/
stgit
/
git.py
diff --git
a/stgit/git.py
b/stgit/git.py
index
4cc35c9
..
27d2595
100644
(file)
--- a/
stgit/git.py
+++ b/
stgit/git.py
@@
-815,13
+815,10
@@
def barefiles(rev1, rev2):
return '\n'.join(result)
return '\n'.join(result)
-def pretty_commit(commit_id = 'HEAD',
diff_
flags = []):
+def pretty_commit(commit_id = 'HEAD', flags = []):
"""Return a given commit (log + diff)
"""
"""Return a given commit (log + diff)
"""
- return GRun('diff-tree',
- *(diff_flags
- + ['--cc', '--always', '--pretty', '-r', commit_id])
- ).raw_output()
+ return GRun('show', *(flags + [commit_id])).raw_output()
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