aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-01-06 16:55:33 -0500
committerTeddy Wing2015-01-06 16:55:33 -0500
commit6e1bbd5123539999bb43135a0a1e9a2722fba2c5 (patch)
tree1194b8b01e01249bf55a8c4b9709220a22caa5c2
parent2be3f192975944b7798ba0d4794af12101c2bcd0 (diff)
downloadgit-checkout-history-6e1bbd5123539999bb43135a0a1e9a2722fba2c5.tar.bz2
Add patch for git-completion.bash
Add a patch file that can be used on git's git-completion.bash file. This gives `git-checkout-store` the same shell completion provided to `git checkout`. For those accustomed to git shell completion, this should make `git-checkout-store` easier to use.
-rw-r--r--git-completion.bash.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/git-completion.bash.patch b/git-completion.bash.patch
new file mode 100644
index 0000000..cce309c
--- /dev/null
+++ b/git-completion.bash.patch
@@ -0,0 +1,18 @@
+--- git-completion.bash.orig 2015-01-06 16:19:15.000000000 -0500
++++ git-completion.bash 2015-01-06 16:35:14.000000000 -0500
+@@ -940,10 +940,15 @@
+ __gitcomp_nl "$(__git_refs '' $track)"
+ ;;
+ esac
+ }
+
++_git_checkout_store ()
++{
++ _git_checkout
++}
++
+ _git_cherry ()
+ {
+ __gitcomp "$(__git_refs)"
+ }
+