From: "Shawn O. Pearce" <spearce@spearce•org>
To: Junio C Hamano <gitster@pobox•com>, git@vger•kernel.org
Subject: [PATCH 8/8] bash completion: Add completion for 'git mv'
Date: Tue, 5 Aug 2008 12:08:30 -0700 [thread overview]
Message-ID: <20080805190830.GD27207@spearce.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 33 bytes --]
The missing patch 8.
--
Shawn.
[-- Attachment #2: Type: message/rfc822, Size: 3807 bytes --]
From: Lee Marlow <lee.marlow@gmail•com>
To: "Shawn O. Pearce" <spearce@spearce•org>
Cc: git@vger•kernel.org, Lee Marlow <lee.marlow@gmail•com>
Subject: [PATCH 8/8] bash completion: Add completion for 'git mv'
Date: Mon, 4 Aug 2008 23:50:38 -0600
Message-ID: <1217915438-6838-9-git-send-email-lee.marlow@gmail•com>
Added completions for all long options specified in the docs
--dry-run
Signed-off-by: Lee Marlow <lee.marlow@gmail•com>
---
contrib/completion/git-completion.bash | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 936cd35..57b8c0f 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -983,6 +983,18 @@ _git_merge_base ()
__gitcomp "$(__git_refs)"
}
+_git_mv ()
+{
+ local cur="${COMP_WORDS[COMP_CWORD]}"
+ case "$cur" in
+ --*)
+ __gitcomp "--dry-run"
+ return
+ ;;
+ esac
+ COMPREPLY=()
+}
+
_git_name_rev ()
{
__gitcomp "--tags --all --stdin"
@@ -1615,6 +1627,7 @@ _git ()
ls-tree) _git_ls_tree ;;
merge) _git_merge;;
merge-base) _git_merge_base ;;
+ mv) _git_mv ;;
name-rev) _git_name_rev ;;
pull) _git_pull ;;
push) _git_push ;;
--
1.6.0.rc1.48.g2b6032
reply other threads:[~2008-08-05 19:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080805190830.GD27207@spearce.org \
--to=spearce@spearce$(echo .)org \
--cc=git@vger$(echo .)kernel.org \
--cc=gitster@pobox$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox