Use tab character instead of | as the delimiter

| may appear in the output
main
Junegunn Choi 2 years ago
parent 015b682e0c
commit 575d0f399b
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -22,7 +22,7 @@
if [[ $# -eq 1 ]]; then
branches() {
git branch "$@" --sort=committerdate --sort=HEAD --format='%(HEAD) %(color:yellow)%(refname:short) %(color:green)(%(committerdate:relative))|%(color:blue)%(subject)%(color:reset)' --color=always | column -ts'|'
git branch "$@" --sort=committerdate --sort=HEAD --format=$'%(HEAD) %(color:yellow)%(refname:short) %(color:green)(%(committerdate:relative))\t%(color:blue)%(subject)%(color:reset)' --color=always | column -ts$'\t'
}
case "$1" in
branches)

Loading…
Cancel
Save