tg-checkout.sh: allow +[n] and -[n] aliases
commit0e6adff3a0bca33fabee0cc5621e44fdeb798266
authorKyle J. McKay <mackyle@gmail.com>
Mon, 1 Jan 2018 15:45:13 +0000 (1 07:45 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 1 Jan 2018 15:45:13 +0000 (1 07:45 -0800)
tree486cab472d6f2ce82ec23e32948141bbc8e28d73
parentdbf76b87023ebd818826c1058171be9aafd96dde
tg-checkout.sh: allow +[n] and -[n] aliases

Allow `tg checkout +` to mean `tg checkout next` or
even `tg checkout +n` to mean `tg checkout next n`.

Similarly `tg checkout -` to mean `tg checkout prev`
or `tg checkout -n` to mean `tg checkout prev n`.

Whitespace is allowed between the +/- and the count.

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