* PATCH: _git tweaks
@ 2008-04-16 17:45 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2008-04-16 17:45 UTC (permalink / raw)
To: zsh-workers
Someone should do completion for 'git stash'.
Index: Completion/Unix/Command/_git
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_git,v
retrieving revision 1.63
diff -u -r1.63 _git
--- Completion/Unix/Command/_git 23 Mar 2008 16:18:20 -0000 1.63
+++ Completion/Unix/Command/_git 16 Apr 2008 17:41:21 -0000
@@ -35,6 +35,7 @@
'(--name-only --name-status -u -p --stat --patch-with-stat --patch-with-raw --raw --numstat --shortstat --summary)--numstat[generate a more machine-friendly diffstat]' \
'(--name-only --name-status -u -p --stat --patch-with-stat --patch-with-raw --raw --numstat --shortstat --summary)--shortstat[generate a summary diffstat]' \
'(--name-only --name-status -u -p --stat --patch-with-stat --patch-with-raw --raw --numstat --shortstat --summary)--summary[generate a condensed summary of extended header information]' \
+ '(--name-only --name-status -u -p --stat --patch-with-stat --patch-with-raw --raw --numstat --shortstat --summary)--dirstat[generate a dirstat]' \
'-B-[break complete rewrite changes into pairs of given size]: :_guard "[[\:digit\:]]#" size'
'-C-[detect copies as well as renames with given scope]: :_guard "[[\:digit\:]]#" size'
$diff_l_arg
@@ -58,6 +59,7 @@
$nul_arg
'--exit-code[report exit code 1 if differences, 0 otherwise]'
'(--exit-code)--quiet[disable all output]'
+ '--relative=:path:_files -/'
)
pretty_arg='--pretty=-[pretty print commit messages]::pretty print:((raw\:"the raw commits"
@@ -1629,7 +1631,9 @@
(( $+functions[_git-gc] )) ||
_git-gc () {
_arguments \
- '--prune[remove unreferenced loose objects]' && ret=0
+ '--aggressive[more aggressively optimize]' \
+ '--auto[check whether housekeeping is required]' \
+ '--quiet[suppress all progress reports]' && ret=0
}
(( $+functions[_git-grep] )) ||
@@ -1658,7 +1662,7 @@
'(-E --extended-regexp -G --basic-regexp)'{-E,--extended-regexp}'[use POSIX extended regexes]' \
'(-E --extended-regexp -G --basic-regexp)'{-G,--basic-regexp}'[use POSIX basic regexes]' \
'-n[prefix the line number to matching lines]' \
- '(-l --files-with-matches -L --files-without-match)'{-l,--files-with-match}'[show only names of matching files]' \
+ '(-l --files-with-matches -L --files-without-match --name-only)'{-l,--files-with-matches,--name-only}'[show only names of matching files]' \
'(-l --files-with-matches -L --files-without-match)'{-L,--files-without-match}'[show only names of non-matching files]' \
'(-c --count)'{-c,--count}'[show number of matching lines in files]' \
'-A[show trailing context]: :_guard "[[\:digit\:]]#" lines' \
@@ -2009,7 +2013,7 @@
'-i[do not perform a checkout after importing]' \
'-k[remove keywords from source files in the CVS archive]' \
'-m[attempt to detect merges based on the commit message]' \
- '-M[attempt to detect merges based on the commit message with custom pattern]:pattern' \
+ '*-M[attempt to detect merges based on the commit message with custom pattern]:pattern' \
'-o[specify the branch into which you wish to import]:branch:__git_branch_names' \
'-P[read cvsps output file]:file:_files' \
'-p[specify additionaly options for cvsps]:cvsps-options' \
@@ -2050,7 +2054,8 @@
(( $+functions[_git-prune] )) ||
_git-prune () {
_arguments -S \
- '-n[do not remove anything; just report what would have been removed]'
+ '-n[do not remove anything; just report what would have been removed]' \
+ '--expire:time:' \
'*::heads:__git_heads' && ret=0
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-04-17 9:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-16 17:45 PATCH: _git tweaks Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).