diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2016-05-29 13:58:26 +0200 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2016-05-29 13:59:22 +0200 |
commit | 2871096f9c87bc561de17e90939fa1727f6ce186 (patch) | |
tree | 16951c1a8a4d84f34370ce8e9ee283ff3ea267cd /share | |
parent | a918397da263ed61d78e2acb3aac1502944cf7fe (diff) |
git completions: Add general options
These are the options between `git` and the subcommand.
Fixes #3087.
Diffstat (limited to 'share')
-rw-r--r-- | share/completions/git.fish | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/share/completions/git.fish b/share/completions/git.fish index 3f2a3b1c..dd3cc46b 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -205,6 +205,26 @@ end # general options complete -f -c git -l help -d 'Display the manual of a git command' +complete -f -c git -l version -d 'Display version' +complete -x -c git -s C -a '(__fish_complete_directories)' -d 'Run as if git was started in this directory' +complete -x -c git -s c -a '(command git config -l | string replace = \t)' -d 'Set a configuration option' +complete -x -c git -l exec-path -a '(__fish_git_complete_directories)' -d 'Get or set the path to the git programs' +complete -f -c git -l html-path -d 'Print the path to the html documentation' +complete -f -c git -l man-path -d 'Print the path to the man documentation' +complete -f -c git -l info-path -d 'Print the path to the info documentation' +complete -f -c git -s p -l paginate -d 'Pipe output into a pager' +complete -f -c git -l no-pager -d 'Do not pipe output into a pager' +complete -f -c git -l git-dir -d 'Set the path to the repository' +complete -f -c git -l work-tree -d 'Set the path to the working tree' +complete -f -c git -l namespace -d 'Set the namespace' +complete -f -c git -l bare -d 'Treat the repository as bare' +complete -f -c git -l no-replace-objects -d 'Do not use replacement refs to replace git objects' +complete -f -c git -l literal-pathspecs -d 'Treat pathspecs literally' +complete -f -c git -l glob-pathspecs -d 'Treat pathspecs as globs' +complete -f -c git -l noglob-pathspecs -d "Don't treat pathspecs as globs" +complete -f -c git -l icase-pathspecs -d 'Match pathspecs case-insensitively' + +# Options shared between multiple commands complete -f -c git -n '__fish_git_using_command log show diff-tree rev-list' -l pretty -a 'oneline short medium full fuller email raw format:' #### fetch |