summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_git
AgeCommit message (Collapse)AuthorFilesLines
2016-12-0140055: update git completion for git 2.11.0Oliver Kiddle1-13/+29
2016-11-2940035: Cosmetic fixes for comments and documentation.Eitan Adler1-1/+1
Mostly fixes to doubled words.
2016-11-29unposted: _git-config: Fix user.email completion to complete only bare email ↵Daniel Shahaf1-1/+1
addresses.
2016-11-1839916 + 39930 + tweak: _git: Complete options and values for -c.Daniel Shahaf1-3/+47
The "$@" in the option-names call is added in order to propagate the new (-S =) arguments. This bifurcates _git-config() in order to provide completion for % git -c <TAB> % git -c foo=<TAB>
2016-11-1739921: __git_recent_branches: Remove erroneous parsing of partial ref names ↵Daniel Shahaf1-3/+3
as tags. In the reflog, partial ref names in the "from" field always represent names of heads. (That is not true for the "to" field.) The parsing of tag names was added in commit 39102 (317c96b64f43688a6be08a8b1c93b6ab4eed662c) for equivalence with the then-previous implementation which used `git log $partial_ref_name`. The equivalence was correct, however, the then-previous implementation was not, since it would consider $partial_ref_name as a refs/tags/ name if a refs/heads/ name did not exist.
2016-11-1739922: __git_recent_branches: Fix an 'assertion' failure when two branches ↵Daniel Shahaf1-11/+8
(refs) point to the same commit.
2016-11-0339822: _git: remove "-A '-*'" with _arguments for some commandsDaniel Hahler1-5/+5
With e.g. `git rebase origin/master` you can have options like `--no-autosquash` after the argument. I have tried the commands where this patch removes `-A`. Commands like `git fetch-pack` that do not support options after arguments are left unchanged.
2016-10-29_git-cherry-pick: Complete argv[2] et seq.Daniel Shahaf1-1/+1
2016-10-0739479 + 39481 minus _path_files hunk (see 39489): Completion: audit 'compset ↵Daniel Shahaf1-1/+1
-P' calls to use shortest match where applicable, plus random drive-by tweaks. Found by grepping for patterns that can match needles of various lengths: :grep 'compset -[PS].*[\#^*()\|<>?~\]' Completion/
2016-09-3039514: pass on --git-dir when calling git to get completion matchesOliver Kiddle1-1/+1
2016-09-14unposted: _git: Permit multiple -c options.Daniel Shahaf1-1/+1
2016-09-0339165: update options to correspond to latest versions of software in ↵Oliver Kiddle1-6/+21
various functions
2016-08-3139122: __git_recent_branches: Silence warning on an edge case.Daniel Shahaf1-2/+9
(The warning was correct; there is no functional change, though.)
2016-08-2539102: __git_recent_branches: Optimise.Daniel Shahaf1-19/+23
This improves performance from 0.6s to 0.04s (+93%) on one of Daniel Hahler's repositories.
2016-08-2439094: _git-config: When an option is unknown, complete its value to the set ↵Daniel Shahaf1-2/+6
value.
2016-08-22unposted (c.f. Mikael: 39078): fix for git blame termsOliver Kiddle1-3/+3
2016-08-22unposted: _git-config: sendemail.smtpserver: Correct tags.Daniel Shahaf1-1/+1
2016-08-1939072: minor tweaksOliver Kiddle1-8/+4
2016-08-1539040: Completion/…/_git: fix missing backslashes in 39036Daniel Hahler1-2/+2
2016-08-1339036: update git completion for new options up to git 2.9.2Oliver Kiddle1-453/+693
2016-08-0138964: _git-config: Complete option names present in the config file.Daniel Shahaf1-0/+46
This patch lets . git config x.y.z value git config <TAB> . complete 'x.y.z', even if x.y.z isn't hardcoded into _git-config.
2016-08-0138963: _git-config: Run gettable-options earlier and in all codepaths.Daniel Shahaf1-2/+6
No change to completions; this is preparation for the next commit.
2016-08-0138961: _git-config: No functional change: rename $git_options_static to ↵Daniel Shahaf1-12/+12
$git_options in preparation for the after-next commit.
2016-07-31unposted: _git: Clean up superfluous and missing backslashes.Daniel Shahaf1-3/+3
2016-07-3138962: _git-config: Document more line noise.Daniel Shahaf1-0/+5
2016-07-27unposted (after 38939): _git-rebase: Unbreak.Daniel Shahaf1-1/+1
2016-07-2538939: add missing git optionsOliver Kiddle1-24/+43
In particular those for GPG signing a push
2016-07-23unposted: _git-grep: Stop leaking the parameter $i.Daniel Shahaf1-1/+1
2016-07-17unposted (cf. users/21737):: _git-subtree: Record technical debt in comment.Daniel Shahaf1-0/+4
2016-07-17users/21750 (after users/21551): _git-subtree: Tweak -m,-P completionsDaniel Shahaf1-11/+11
2016-07-05users/21551 (tweaked per users/21560): new git subtree completionJordan Klassen1-0/+92
2016-06-2738760: _git-config: Stop trying to execute the empty string command name ↵Daniel Shahaf1-1/+1
upon completing values for an unknown option. For example: % git config x.y.z <TAB> +_git-config:834> case x.y.z (alias.*) +_git-config:834> case x.y.z (remotes.*) +_git-config:860> local z=$'\C-@' +_git-config:861> declare -a parts +_git-config:862> parts=( '' ) +_git-config:863> (( 1 < 2 )) +_git-config:863> [[ x.y.z == [^.]##.*.[^.]## ]] +_git-config:864> parts=( '' ) +_git-config:866> (( 1 > 0 )) +_git-config:867> case (-\>*) +_git-config:867> case (*) +_git-config:1197> declare -a action +_git-config:1198> _description values expl '' +_git-config:1199> eval 'action=()' +(eval):1> action=( ) +_git-config:1200> '' -J values _git-config:1200: permission denied: +_git-config:1206> return ret
2016-06-25unposted: _git-config: Document some line noise.Daniel Shahaf1-0/+3
2016-06-25unposted: _git-config: Fix syntax error in 'tag.sort' completion.Daniel Shahaf1-1/+1
2016-06-1338651: _git: Escape parameter arguments to _call_program.Daniel Shahaf1-7/+7
Fixes 'git cat-file blob HEAD^:<TAB>' and a few other cases.
2016-06-1338665: _git: config option completion: Quote properly.Daniel Shahaf1-2/+2
2016-06-0738624: _git: Optimize the last commit's __git_recent_branches__names as ↵Daniel Shahaf1-24/+9
suggested by Matthew.
2016-06-0738592 (plus tweak): _git: New recent branches completion, unused. (Joint ↵Daniel Shahaf1-0/+60
with Nils Luxton)
2016-06-0338576: _git: Also detect _git-${thirdparty} functions in $fpath that are ↵Daniel Shahaf1-1/+1
symlinks.
2016-05-0338393: _git: Fix typo in completion of '--minimal'Russell Currey1-1/+1
Signed-off-by: Russell Currey <ruscur@russell.cc>
2016-05-01_git: Complete fetchy refspecs correctly.Daniel Shahaf1-2/+13
2016-05-01_git: Bifurcate __git_ref_specs.Daniel Shahaf1-10/+24
No functional change, except for completion of 'git bundle' and 'git config branch.*.merge'; this is a required groundwork for future patches.
2016-05-01_git: Fix an apparent typo in __git_heads().Daniel Shahaf1-2/+2
I couldn't reproduce different behaviour with and without this patch, although the called command's output differs.
2016-05-01_git: Offer alternatives properly.Daniel Shahaf1-2/+1
2016-05-01_git-bundle: Complete required file argument to 'git bundle' correctly.Daniel Shahaf1-0/+1
2016-04-2338316: _git-rebase: Complete any committish for the second argumentDaniel Shahaf1-1/+1
2016-04-0938255: _git: Fix argument pastedness.Daniel Shahaf1-43/+43
Found by searching for /-\w\>.*:/. This covers short options only, from the top of file through _git-tag().
2016-03-2138182: _git: Invoke reflog completion from the 'complete commit objects' ↵Daniel Shahaf1-3/+10
codepath. The reflog will only be used if the user has typed as "@" by hand.
2016-03-2138181: _git reflog: Complete '@{N}' instead of 'HEAD@{N}'.Daniel Shahaf1-0/+1
The «HEAD@{...}» syntax is no longer completed, since it's not easily possible to support both syntaxes (workers/34768).
2016-03-2138180: _git: Improve reflog completion.Daniel Shahaf1-2/+2
Currently, only used by «git reflog delete <TAB>».