File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -1604,14 +1604,9 @@ _git_log ()
1604
1604
local cur
1605
1605
_get_comp_words_by_ref -n =: cur
1606
1606
case " $cur " in
1607
- --pretty=* )
1607
+ --pretty=* |--format= * )
1608
1608
__gitcomp " $__git_log_pretty_formats $( __git_pretty_aliases)
1609
- " " " " ${cur## --pretty=} "
1610
- return
1611
- ;;
1612
- --format=* )
1613
- __gitcomp " $__git_log_pretty_formats $( __git_pretty_aliases)
1614
- " " " " ${cur## --format=} "
1609
+ " " " " ${cur#* =} "
1615
1610
return
1616
1611
;;
1617
1612
--date=* )
@@ -2456,14 +2451,9 @@ _git_show ()
2456
2451
local cur
2457
2452
_get_comp_words_by_ref -n =: cur
2458
2453
case " $cur " in
2459
- --pretty=* )
2460
- __gitcomp " $__git_log_pretty_formats $( __git_pretty_aliases)
2461
- " " " " ${cur## --pretty=} "
2462
- return
2463
- ;;
2464
- --format=* )
2454
+ --pretty=* |--format=* )
2465
2455
__gitcomp " $__git_log_pretty_formats $( __git_pretty_aliases)
2466
- " " " " ${cur## --format =} "
2456
+ " " " " ${cur#* =} "
2467
2457
return
2468
2458
;;
2469
2459
--* )
You can’t perform that action at this time.
0 commit comments