threads / patch / 43826

patchhelp: use pager

Subject: [TopGit PATCH] help: use pager

## tl;dr

One message between Jun 2, 2009 and Jun 2, 2009. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Bert Wesarg· Jun 2, 2009, 20:35 UTC · lore
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
---
 tg.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Show changes to tg.sh +2 −1
diff --git a/tg.sh b/tg.sh
index 8c174fb..4185ba2 100644
--- a/tg.sh
+++ b/tg.sh
@@ -269,7 +269,8 @@ do_help()
 		echo "TopGit v$TG_VERSION - A different patch queue manager"
 		echo "Usage: tg [-r REMOTE] ($cmds|help) ..."
 	elif [ -r "@cmddir@"/tg-$1 ] ; then
-		@cmddir@/tg-$1 -h || :
+		setup_pager
+		@cmddir@/tg-$1 -h 2>&1 || :
 		echo
 		if [ -r "@sharedir@/tg-$1.txt" ] ; then
 			cat "@sharedir@/tg-$1.txt"
-- 
tg: (b725fc9..) bw/use-pager-for-help-output (depends on: master)

← back to recent threads