Skip to contentSkip to conversation

bash completion: Add '--intent-to-add' long option for 'git add'

PATCH In review Lee Marlow 2 participants 6 messages Jun 15, 2016

lore
Share & tools
lore

Lee Marlow

author
#0 lore raw

PATCH 1/2 bash completion: Add '--intent-to-add' long option for 'git add'

---
 contrib/completion/git-completion.bash |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
contrib/completion/git-completion.bash +1 -1
index c79c98f..5356e5b 100755
@@ -563,7 +563,7 @@ _git_add ()
 	--*)
 		__gitcomp "
 			--interactive --refresh --patch --update --dry-run
-			--ignore-errors
+			--ignore-errors --intent-to-add
 			"
 		return
 	esac
Signature · 1 line
1.6.1.rc2.14.g5363d
author
#1 lore raw

PATCH 2/2 bash completion: Use 'git add' completions for 'git stage'

---
 contrib/completion/git-completion.bash |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
contrib/completion/git-completion.bash +1 -0
index 5356e5b..7e2b482 100755
@@ -1660,6 +1660,7 @@ _git ()
 	show)        _git_show ;;
 	show-branch) _git_show_branch ;;
 	stash)       _git_stash ;;
+	stage)       _git_add ;;
 	submodule)   _git_submodule ;;
 	svn)         _git_svn ;;
 	tag)         _git_tag ;;
Signature · 1 line
1.6.1.rc2.14.g5363d
#2 lore raw

Re: [PATCH 2/2] bash completion: Use 'git add' completions for 'git stage'

Quoted 4 lines · Lee Marlow
---
 contrib/completion/git-completion.bash |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Also,

Quoted 19 lines
contrib/completion/git-completion.bash +1 -0
index 5356e5b..7e2b482 100755
@@ -1660,6 +1660,7 @@ _git ()
 	show)        _git_show ;;
 	show-branch) _git_show_branch ;;
 	stash)       _git_stash ;;
+	stage)       _git_add ;;
 	submodule)   _git_submodule ;;
 	svn)         _git_svn ;;
 	tag)         _git_tag ;;
Signature · 6 lines
1.6.1.rc2.14.g5363d

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Shawn.
#4 lore raw
In reply to Lee Marlow
Quoted 4 lines · Lee Marlow
---
 contrib/completion/git-completion.bash |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 16 lines
contrib/completion/git-completion.bash +1 -1
index c79c98f..5356e5b 100755
@@ -563,7 +563,7 @@ _git_add ()
 	--*)
 		__gitcomp "
 			--interactive --refresh --patch --update --dry-run
-			--ignore-errors
+			--ignore-errors --intent-to-add
 			"
 		return
 	esac
Signature · 1 line
1.6.1.rc2.14.g5363d
Signature · 1 line
Shawn.