completions/git: define function before use

This commit is contained in:
Johannes Altmanninger
2021-07-12 23:41:28 +02:00
parent e3d8b315ed
commit e50805646e
2 changed files with 14 additions and 9 deletions

View File

@@ -36,6 +36,10 @@ touch foo
complete -C'git add '
#CHECK: foo Untracked file
git config alias.s status
complete 'git s --s'
# CHECK --short
# Note: We can't rely on the initial branch because that might be
# "master", or it could be changed to something else in future!
git checkout -b newbranch >/dev/null 2>&1