~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Do not use the pager when the output is empty
[stgit]
/
stgit
/
commands
/
diff.py
diff --git
a/stgit/commands/diff.py
b/stgit/commands/diff.py
index
caa3c5b
..
9abd438
100644
(file)
--- a/
stgit/commands/diff.py
+++ b/
stgit/commands/diff.py
@@
-78,4
+78,6
@@
def func(parser, options, args):
if options.stat:
print git.diffstat(args, git_id(rev1), git_id(rev2))
else:
- pager(git.diff(args, git_id(rev1), git_id(rev2)))
+ diff_str = git.diff(args, git_id(rev1), git_id(rev2))
+ if diff_str:
+ pager(diff_str)