tg: consolidate contained_by
commitf9693515599f24500e5f9ea8ae49c85d12c6aa07
authorKyle J. McKay <mackyle@gmail.com>
Sat, 25 Mar 2017 15:58:31 +0000 (25 08:58 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 25 Mar 2017 15:58:31 +0000 (25 08:58 -0700)
treeb51679dd79d55acaf70c34c4d85f54ac0d139c8e
parent75c87381934015220ff11583e041b1f83a2612ef
tg: consolidate contained_by

The "contained_by" function works like --is-ancestor except that
while it's never slower it's often slightly faster.

It has, however, proliferated all over the place.

One of the locations is tg.sh.

Therefore just eliminate the duplicates since they define the
same function and are totally unnecessary.

Also fix up one place that wasn't calling the function, but
was actually doing the same thing, to call the function instead.

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