summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_git6
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index a845da630..eb25e08d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-12-05  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* 37150: Completion/Unix/Command/_git: _git: Autocomplete .. for
+	commit ranges
+
 	* 36957: Completion/Unix/Command/_git: _git: Apply matchspecs to
 	filename completion such as 'git log f/b<TAB>' → 'foo/bar.txt's
 
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 2030321de..2a124c18c 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5623,8 +5623,8 @@ __git_commits () {
 
 (( $+functions[__git_heads] )) ||
 __git_heads () {
-  __git_heads_local
-  __git_heads_remote
+  __git_heads_local "$@"
+  __git_heads_remote "$@"
 }
 
 (( $+functions[__git_heads_local] )) ||
@@ -5815,7 +5815,7 @@ __git_commit_ranges () {
       if [[ ${PREFIX} = (#b)((\\|)\^)* ]]; then
 	compset -p ${#match[1]}
       else
-	suf=( -S .. -r '.@~ ^:\t\n\-' )
+	suf=( -S .. -r '@~ \^:\t\n\-' )
       fi
     fi
     expl=( $* $suf )