git: turn git-alias into a git command

This commit is contained in:
Fernando Schauenburg 2024-07-14 02:32:03 +02:00
parent 6f5ddfaad6
commit 0f85776d14
2 changed files with 9 additions and 1 deletions

9
bin/git-alias Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
#
# List git aliases.
#
exec git config --get-regexp '^alias' \
| sed 's/^alias\.//' \
| sed 's/ /\t= /' \
| sort

View file

@ -1,5 +1,4 @@
[alias]
alias = config --get-regexp ^alias
b = branch
bv = b -vv
ba = bv --all