-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from pe/patch-1
Remove filenames in tab-completion in fish
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# fish completion for git fixup | ||
|
||
function __fish_git_fixup_target | ||
git fixup --no-commit --no-rebase 2>/dev/null | string replace -r '^([0-9a-f]{10})[0-9a-f]* (.*)' '$1\t$2' | ||
git-fixup --no-commit --no-rebase 2>/dev/null | string replace -r '^([0-9a-f]{10})[0-9a-f]* (.*)' '$1\t$2' | ||
end | ||
|
||
complete -c git -n '__fish_git_using_command fixup' -s s -l squash -f -d 'Create a squash commit rather than a fixup' | ||
complete -c git -n '__fish_git_using_command fixup' -s c -l commit -f -d 'Show a menu to pick a commit' | ||
complete -c git -n '__fish_git_using_command fixup' -l no-commit -f -d 'Don\'t show a menu to pick a commit' | ||
complete -c git -n '__fish_git_using_command fixup' -s n -l no-verify -f -d 'Bypass the pre-commit and commit-msg hooks' | ||
complete -c git -n '__fish_git_using_command fixup' -l rebase -f -d 'Do a rebase after commit' | ||
complete -c git -n '__fish_git_using_command fixup' -l no-rebase -f -d 'Don\'t do a rebase after commit' | ||
complete -c git -n '__fish_git_using_command fixup' -s b -l base -f -d 'Use <rev> as base of the revision range for the search]' -a '(__fish_git_refs)' | ||
complete -c git -n '__fish_git_using_command fixup' -f -k -a '(__fish_git_fixup_target)' | ||
complete -c git-fixup -s s -l squash -f -d 'Create a squash commit rather than a fixup' | ||
complete -c git-fixup -s c -l commit -f -d 'Show a menu to pick a commit' | ||
complete -c git-fixup -l no-commit -f -d 'Don\'t show a menu to pick a commit' | ||
complete -c git-fixup -s n -l no-verify -f -d 'Bypass the pre-commit and commit-msg hooks' | ||
complete -c git-fixup -l rebase -f -d 'Do a rebase after commit' | ||
complete -c git-fixup -l no-rebase -f -d 'Don\'t do a rebase after commit' | ||
complete -c git-fixup -s b -l base -f -d 'Use <rev> as base of the revision range for the search]' -a '(__fish_git_refs)' | ||
complete -c git-fixup -f -k -a '(__fish_git_fixup_target)' |