Skip to content

Commit f687aaa

Browse files
perlduckpaulusmack
authored andcommitted
gitk: Add option 'Simple history' to the options menu
When clicked, the option --simplify-by-decoration is added to gitk/git log. This yields to a simplified history where only decorated commits are shown, i.e. those with a yellow tag or a green branch flag. Signed-off-by: Dirk Suesserott <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 194bbf6 commit f687aaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gitk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ proc parseviewargs {n arglist} {
187187
"--until=*" - "--before=*" - "--max-age=*" - "--min-age=*" -
188188
"--author=*" - "--committer=*" - "--grep=*" - "-[iE]" -
189189
"--remove-empty" - "--first-parent" - "--cherry-pick" -
190-
"-S*" - "--pickaxe-all" - "--pickaxe-regex" {
190+
"-S*" - "--pickaxe-all" - "--pickaxe-regex" -
191+
"--simplify-by-decoration" {
191192
# These mean that we get a subset of the commits
192193
set filtered 1
193194
lappend glflags $arg
@@ -3697,6 +3698,7 @@ set known_view_options {
36973698
{dorder b *. {"--date-order" "-d"} {mc "Strictly sort by date"}}
36983699
{lright b . "--left-right" {mc "Mark branch sides"}}
36993700
{first b . "--first-parent" {mc "Limit to first parent"}}
3701+
{smplhst b . "--simplify-by-decoration" {mc "Simple history"}}
37003702
{args t50 *. {} {mc "Additional arguments to git log:"}}
37013703
{allpaths path + {} {mc "Enter files and directories to include, one per line:"}}
37023704
{cmd t50= + {} {mc "Command to generate more commits to include:"}}

0 commit comments

Comments
 (0)