Open salcode opened 5 years ago
I think we should deprecate
git FeCurrentBranchName
and change everything to use
git current-branch
As of Git 2.22 we can use
git branch --show-current
Do we want to refactor to use the new way but fallback to a pre-Git 2.22 way? e.g.
current-branch = "!f() { \
git \
"branch --show-current" \
"2>/dev/null" \
|| \
git "rev-parse --abbrev-ref HEAD"; \
}; f" \
See
source