tg-info.sh: support --deps and --dependents options
commit203bb595705c356d7584712f8bf18d6a3892db93
authorKyle J. McKay <mackyle@gmail.com>
Fri, 31 Mar 2017 05:57:08 +0000 (30 22:57 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 31 Mar 2017 05:57:08 +0000 (30 22:57 -0700)
tree42eee17b3c2aa9a61455a1e4aa2b5ab7b3b79c00
parent8f44f04bacc7b46cae71d2517899eecfdc78eac7
tg-info.sh: support --deps and --dependents options

The "--deps" option shows a list of non-annihilated TopGit
branches that are dependencies of the current (or specified)
TopGit branch (i.e. the ".topdeps" contents but with non-TopGit
and annihilated branches filtered out).

The "--dependents" option shows a list of non-annihilated TopGit
branches that depend on the current (or specified) TopGit branch.

The semantics of `tg next` and `tg prev` will change in the
future to regain sanity and parity with `tg checkout`.

With this change no functionality (whatever it might have been
or have been perceived to be) will be lost when "tg next" and
"tg prev" get overhauled; it will still be available somewhere
(depending on what the perceived or desired output of the old
"tg prev" and/or "tg next" was in the mind of the user).

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