From 1ed1af98121e9b1c0e25e9b05160b0bc7e1dd0ee Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sat, 16 Aug 2008 18:33:30 +0000 Subject: 25465: patch from Mikael Magnusson to add more git-add and git-checkout options. --- ChangeLog | 3 +++ Completion/Unix/Command/_git | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index fe60b7afd..3e373b795 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-08-16 Clint Adams + * 25465: Completion/Unix/Command/_git: patch from Mikael Magnusson + to add more git-add and git-checkout options. + * unposted: Completion/Unix/Command/_git: another typo fix. * 25464: Completion/Unix/Command/_git: patch from Mikael Magnusson diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 4c1513a17..30cc7b2a0 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -1298,6 +1298,10 @@ _git-add () { '-v[show files as they are added]' \ '-f[allow adding otherwise ignored files]' \ '(-i --interactive : -)'{-i,--interactive}'[add contents interactively to the index]' \ + '(-p --patch : -)'{-p,--patch}'[like -i but go directly into patch mode for specified files]' \ + '-u[Update only files git already knows about]' \ + '--refresh[do not add files, but refresh their stat() info in the index]' \ + '--ignore-errors[continue adding if an error occurs]' \ '*:file:->files' && ret=0 case $state in @@ -1506,6 +1510,9 @@ _git-checkout () { '-q[suppress feedback messages]' \ '-f[force a complete re-read]' \ '-b[create a new branch based at given branch]: :__git_guard_branch-name' \ + {-t,--track}'[set up configuration so pull merges from the start point]' \ + '--no-track[override the branch.autosetupmerge configuration variable]' \ + '-l[create the branch'\''s reflog]' \ $new_branch_reflog_arg \ '-m[3way merge current branch, working tree and new branch]' \ '::branch:__git_revisions' \ -- cgit 1.4.1