Git has this feature, where you can place any executable named git-foo
on $PATH
and then call it as git foo <args>
, like a built-in subcommand (or is it more of a side-effect of how Git implemented subcommands in the early days?).
I learned this probably 15 years ago and now told someone about this who didn't know it already. I'd like to point them to some documentation explaining it in a bit more detail (e.g. the variables that are placed in the environment) by git
.
Where is this behavior documented in the official documentation (or e.g. in a mail thread by the developers)?