git:alias:track: Do not print trailing arrow

Do not print trailing arrow when the local branch is not tracking a
remote branch.
This commit is contained in:
2021-11-12 14:32:01 +01:00
parent 2434f3fc4c
commit 1fd2c730d9

View File

@@ -16,7 +16,7 @@
[alias]
root = rev-parse --show-toplevel
spull = "!__git_spull() { git pull \"$@\" && git submodule sync --recursive && git submodule update --init --recursive; }; __git_spull"
track = "!track() { git for-each-ref --format='%(upstream:short) <- %(refname:short)' refs/heads | sort | awk '{ print $3,$2,$1}' | column -t; }; track"
track = "!track() { git for-each-ref --format='%(upstream:short) <- %(refname:short)' refs/heads | sort | awk '{ print $3,$2,$1}' | column -t | sed 's/ *<- *$//'; }; track"
[status]
submodulesummary = true
[diff]