File tree Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -1553,14 +1553,9 @@ _git_log ()
1553
1553
merge=" --merge"
1554
1554
fi
1555
1555
case " $cur " in
1556
- --pretty=* )
1556
+ --pretty=* |--format= * )
1557
1557
__gitcomp " $__git_log_pretty_formats $( __git_pretty_aliases)
1558
- " " " " ${cur## --pretty=} "
1559
- return
1560
- ;;
1561
- --format=* )
1562
- __gitcomp " $__git_log_pretty_formats $( __git_pretty_aliases)
1563
- " " " " ${cur## --format=} "
1558
+ " " " " ${cur#* =} "
1564
1559
return
1565
1560
;;
1566
1561
--date=* )
@@ -1668,11 +1663,9 @@ _git_notes ()
1668
1663
;;
1669
1664
esac
1670
1665
;;
1671
- add,--reuse-message=* |append,--reuse-message=* )
1672
- __gitcomp " $( __git_refs) " " " " ${cur## --reuse-message=} "
1673
- ;;
1666
+ add,--reuse-message=* |append,--reuse-message=* |\
1674
1667
add,--reedit-message=* |append,--reedit-message=* )
1675
- __gitcomp " $( __git_refs) " " " " ${cur## --reedit-message =} "
1668
+ __gitcomp " $( __git_refs) " " " " ${cur#* =} "
1676
1669
;;
1677
1670
add,--* |append,--* )
1678
1671
__gitcomp ' --file= --message= --reedit-message=
@@ -2367,14 +2360,9 @@ _git_show ()
2367
2360
__git_has_doubledash && return
2368
2361
2369
2362
case " $cur " in
2370
- --pretty=* )
2371
- __gitcomp " $__git_log_pretty_formats $( __git_pretty_aliases)
2372
- " " " " ${cur## --pretty=} "
2373
- return
2374
- ;;
2375
- --format=* )
2363
+ --pretty=* |--format=* )
2376
2364
__gitcomp " $__git_log_pretty_formats $( __git_pretty_aliases)
2377
- " " " " ${cur## --format =} "
2365
+ " " " " ${cur#* =} "
2378
2366
return
2379
2367
;;
2380
2368
--* )
You can’t perform that action at this time.
0 commit comments