about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_git2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f11321438..9bdd385cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-12-20  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* 42138: Completion/Unix/Command/_git: _git-revert: Complete
+	recent commits first.
+
 	* Stephane (rebased by Mikael): users/13148, workers/42060:
 	Src/exec.c: Abort the command line when replying "[n] No" to
 	the RM_STAR_SILENT prompt.
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 9ee2eba76..8e3b0eb3d 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1515,7 +1515,7 @@ _git-revert () {
     '*'{-X,--strategy-option=}'[pass merge-strategy-specific option to merge strategy]:option' \
     '(-S --gpg-sign --no-gpg-sign)'{-S-,--gpg-sign=-}'[GPG-sign the commit]::key id' \
     "(-S --gpg-sign --no-gpg-sign)--no-gpg-sign[don't GPG-sign the commit]" \
-    ': :__git_commits'
+    ': :__git_recent_commits'
 }
 
 (( $+functions[_git-rm] )) ||