@matheusbsbs / matheus-bagliano / commits / f687aaa833
Fork 0

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 <newsletter@dirk.my1.cc> Signed-off-by: Paul Mackerras <paulus@samba.org>

Dirk Suesserott committed May 21, 2009 at 15:35 UTC f687aaa83371f0fd9aa41e62cd74405491ddab78
1 file changed +3 -1
gitk
+3 -1
@@ -187,7 +187,8 @@ proc parseviewargs {n arglist} {
187 "--until=*" - "--before=*" - "--max-age=*" - "--min-age=*" -
188 "--author=*" - "--committer=*" - "--grep=*" - "-[iE]" -
189 "--remove-empty" - "--first-parent" - "--cherry-pick" -
190 - "-S*" - "--pickaxe-all" - "--pickaxe-regex" {
190 + "-S*" - "--pickaxe-all" - "--pickaxe-regex" -
191 + "--simplify-by-decoration" {
192 # These mean that we get a subset of the commits
193 set filtered 1
194 lappend glflags $arg
@@ -3697,6 +3698,7 @@ set known_view_options {
3698 {dorder b *. {"--date-order" "-d"} {mc "Strictly sort by date"}}
3699 {lright b . "--left-right" {mc "Mark branch sides"}}
3700 {first b . "--first-parent" {mc "Limit to first parent"}}
3701 + {smplhst b . "--simplify-by-decoration" {mc "Simple history"}}
3702 {args t50 *. {} {mc "Additional arguments to git log:"}}
3703 {allpaths path + {} {mc "Enter files and directories to include, one per line:"}}
3704 {cmd t50= + {} {mc "Command to generate more commits to include:"}}