summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Dirk Suesserott <newsletter@dirk.my1.cc>2009-05-21 15:35:40 +0200
committerLibravatar Paul Mackerras <paulus@samba.org>2009-05-25 09:46:31 +1000
commitf687aaa83371f0fd9aa41e62cd74405491ddab78 (patch)
treebbd59c633cdec21b6c4a81d6ca434234d2615524
parentgitk: Handle msysGit version during version comparisons (diff)
downloadtgif-f687aaa83371f0fd9aa41e62cd74405491ddab78.tar.xz
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>
-rwxr-xr-xgitk4
1 files changed, 3 insertions, 1 deletions
diff --git a/gitk b/gitk
index 18553904f8..d48fbad857 100755
--- a/gitk
+++ b/gitk
@@ -187,7 +187,8 @@ proc parseviewargs {n arglist} {
"--until=*" - "--before=*" - "--max-age=*" - "--min-age=*" -
"--author=*" - "--committer=*" - "--grep=*" - "-[iE]" -
"--remove-empty" - "--first-parent" - "--cherry-pick" -
- "-S*" - "--pickaxe-all" - "--pickaxe-regex" {
+ "-S*" - "--pickaxe-all" - "--pickaxe-regex" -
+ "--simplify-by-decoration" {
# These mean that we get a subset of the commits
set filtered 1
lappend glflags $arg
@@ -3697,6 +3698,7 @@ set known_view_options {
{dorder b *. {"--date-order" "-d"} {mc "Strictly sort by date"}}
{lright b . "--left-right" {mc "Mark branch sides"}}
{first b . "--first-parent" {mc "Limit to first parent"}}
+ {smplhst b . "--simplify-by-decoration" {mc "Simple history"}}
{args t50 *. {} {mc "Additional arguments to git log:"}}
{allpaths path + {} {mc "Enter files and directories to include, one per line:"}}
{cmd t50= + {} {mc "Command to generate more commits to include:"}}