tg: provide global --pager (-p) option
commite373960236c504a9c4ed83066fad3e3df08ba468
authorKyle J. McKay <mackyle@gmail.com>
Mon, 19 Jun 2017 19:25:54 +0000 (19 12:25 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 19 Jun 2017 19:25:54 +0000 (19 12:25 -0700)
tree28556f69b12cbc3c7cf65941128d35f5482742e3
parent0d0dbd72d09ac108ecdf744dc3cfac2bfe6b42c7
tg: provide global --pager (-p) option

Not all commands use a pager for output.  It would be incorrect
to suddenly unconditionally switch them over to using a pager
(even the the pager auto-disables unless the output is to a
"terminal").

Instead provide a global --pager (aka -p) option to go with the
global --no-pager option just like Git does.

For example, tg summary can provide a lot of output really fast
now :) if there are a lot of TopGit branches and it's not paged.
Using `tg -p summary` solves the problem now.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
README
tg.sh