ref: a08453bf28d8178919b62d01b73e56c209f5b4d1
parent: 5d65bc0372824b98d8f909d8de3e5ee2c4c08668
author: kvik <kvik@a-b.xyz>
date: Thu Nov 14 22:04:31 EST 2019
Instead of each script defining their own ad-hoc usage function we define a generic handler in /bin/git/common.rc and have each script fill the $usage variable with a message that will get displayed on standard error output before exiting the program. This patch also makes an initial and weak attempt at cleaning up the usage messages to match the current implementation. Rest of the work, along with cleaning up the unused code paths will be done after further basic cleanups. Move usage handling to common.rc; update all scripts.