975
__git_complete_file
976
}
977
978
+# Options that go well for log, shortlog and gitk
979
+__git_log_common_options="
980
+ --not --all
981
+ --branches --tags --remotes
982
+ --first-parent --no-merges
983
+ --max-count=
984
+ --max-age= --since= --after=
985
+ --min-age= --until= --before=
986
+"
987
+# Options that go well for log and gitk (not shortlog)
988
+__git_log_gitk_options="
989
+ --dense --sparse --full-history
990
+ --simplify-merges --simplify-by-decoration
991
+ --left-right
992
+"
993
+# Options that go well for log and shortlog (not gitk)
994
+__git_log_shortlog_options="
995
+ --author= --committer= --grep=
996
+ --all-match
997
+"
998
+
999
__git_log_pretty_formats="oneline short medium full fuller email raw format:"
1000
1001
_git_log ()
1017
;;
1018
--*)
1019
__gitcomp "
999
- --max-count= --max-age= --since= --after=
1000
- --min-age= --before= --until=
1020
+ $__git_log_common_options
1021
+ $__git_log_shortlog_options
1022
+ $__git_log_gitk_options
1023
--root --topo-order --date-order --reverse
1002
- --no-merges --follow
1024
+ --follow
1025
--abbrev-commit --abbrev=
1026
--relative-date --date=
1005
- --author= --committer= --grep=
1006
- --all-match
1027
--pretty=
1008
- --not --all
1009
- --left-right --cherry-pick
1028
+ --cherry-pick
1029
--graph
1030
--decorate
1031
--walk-reflogs
1013
- --parents --children --full-history
1032
+ --parents --children
1033
--merge
1034
$__git_diff_common_options
1035
--pickaxe-all --pickaxe-regex
1515
case "$cur" in
1516
--*)
1517
__gitcomp "
1499
- --max-count= --max-age= --since= --after=
1500
- --min-age= --before= --until=
1501
- --no-merges
1502
- --author= --committer= --grep=
1503
- --all-match
1504
- --not --all
1518
+ $__git_log_common_options
1519
+ $__git_log_shortlog_options
1520
--numbered --summary
1521
"
1522
return
1843
fi
1844
case "$cur" in
1845
--*)
1831
- __gitcomp "--not --all $merge"
1846
+ __gitcomp "
1847
+ $__git_log_common_options
1848
+ $__git_log_gitk_options
1849
+ $merge
1850
+ "
1851
return
1852
;;
1853
esac