mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Add bash_completion for new git-ignore switches.
This commit is contained in:
parent
95630d7fcb
commit
79c8753436
|
|
@ -32,6 +32,19 @@ _git_graft(){
|
|||
__gitcomp "$(__git_heads)"
|
||||
}
|
||||
|
||||
_git_ignore(){
|
||||
case "$cur" in
|
||||
--*)
|
||||
__gitcomp "--global --local"
|
||||
return
|
||||
;;
|
||||
-*)
|
||||
__gitcomp "--global --local -g -l"
|
||||
return
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
_git_squash(){
|
||||
__gitcomp "$(__git_heads)"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue