tg-tag.sh: properly --clear reflogs
commit8afdcfd2bfc11a04e1b6e6ce0405b2f84771a529
authorKyle J. McKay <mackyle@gmail.com>
Thu, 8 Mar 2018 18:30:28 +0000 (8 10:30 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 8 Mar 2018 18:30:28 +0000 (8 10:30 -0800)
tree79fb9e8f58def60f2a7a671491934b1b7c9722f7
parent596cf3e57b9dc272e9e10c86d8ac4b1e2a213207
tg-tag.sh: properly --clear reflogs

When clearing a reflog to a single entry, the "from" value
must be reset to all "0"s to avoid showing a straggler when
using `git log --walk-reflogs`.

Switch from sed to awk thereby allowing this to be done easily
without needing to run anymore external commands.

Also take this opportunity to add a missing `2>/dev/null`.

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