completion: use __gitcomp_builtin in _git_cherry
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Nguyễn Thái Ngọc Duy committed
Mar 24, 2018 at 21:35 UTC
c55c4a5b6476073ef0f09665c6c1ef1e38980087
1 file changed
+6
contrib/completion/git-completion.bash
+6
@@ -1286,6 +1286,12 @@ _git_checkout ()
1286
1287
_git_cherry ()
1288
{
1289
+ case "$cur" in
1290
+ --*)
1291
+ __gitcomp_builtin cherry
1292
+ return
1293
+ esac
1294
+
1295
__git_complete_refs
1296
}
1297