X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/c82395b46d238948882045e76e7770319a4f40e8..52f3900c0c7dec8581fa907495a09c900a3d39d7:/stgit/commands/show.py diff --git a/stgit/commands/show.py b/stgit/commands/show.py index 50eb376..9537192 100644 --- 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 +from pydoc import pager 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) - sys.stdout.write(git.pretty_commit(commit_id)) + pager(git.pretty_commit(commit_id))