Being able to use $1/$2/etc directly might be a relatively new development.
EDIT: Or maybe not. This might have been doable since 2010:
https://github.com/git/git/commit/8dba1e634af1d973a47fca616a...