~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use a pager for diff and show commands
[stgit]
/
stgit
/
commands
/
show.py
diff --git
a/stgit/commands/show.py
b/stgit/commands/show.py
index
50eb376
..
9537192
100644
(file)
--- a/
stgit/commands/show.py
+++ b/
stgit/commands/show.py
@@
-17,6
+17,7
@@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import sys, os
from optparse import OptionParser, make_option
import sys, os
from optparse import OptionParser, make_option
+from pydoc import pager
from stgit.commands.common import *
from stgit import git
from stgit.commands.common import *
from stgit import git
@@
-42,4
+43,4
@@
def func(parser, options, args):
parser.error('incorrect number of arguments')
commit_id = git_id(patch)
parser.error('incorrect number of arguments')
commit_id = git_id(patch)
-
sys.stdout.write
(git.pretty_commit(commit_id))
+
pager
(git.pretty_commit(commit_id))