{"thread":{"id":"19195","subject":"How to restrict gitk to show only branch/merge commits?","startedAt":"2009-05-06T07:20:53Z","lastAt":"2009-05-06T07:51:16Z","messageCount":3,"participants":["Josef Wolf","Andreas Ericsson","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"113070","messageId":"20090506072053.GL15420@raven.wolf.lan","threadId":"19195","inReplyTo":null,"subject":"How to restrict gitk to show only branch/merge commits?","fromName":"Josef Wolf","fromEmail":"jw@raven.inka.de","sentAt":"2009-05-06T07:20:53Z","receivedAt":"2009-05-06T07:20:53Z","isPatch":false,"sender":{"key":"jw@raven.inka.de","avatar":null},"body":"Hello,\n\nI would like gitk to show me only the heads, branch-points and\nmerge-points of branches.\n\nFor example, given a history like this:\n\n                   d...e--F--g...h--H\n                  /        \\\n a1--a2...an--b--C          N--o...p--P\n                  \\        /\n                   i...j--K--l...m--M\n\nI would like to see only\n\n - a1     because it has no parent\n - C,F,K  because they are reachable from multiple heads\n - N      because it has multiple parents\n - H,M,P  because they are heads\n\nIdeally, there would be a possibility to add some \"context\" to the\nlist of commits to be shown: with $context==1, all the commits shown\nin the above history would be shown, but the commits indicated by\nthe triple-dots would be omitted.\n\nThe reason is that I have some repositories with several really long\nlinear history.  It is hard to get a global overview about the branch\nhistory if you have to scroll constantly.\n\nIs something like that possible with gitk?\n"},{"id":"113072","messageId":"4A013F6A.5010003@op5.se","threadId":"19195","inReplyTo":"20090506072053.GL15420@raven.wolf.lan","subject":"Re: How to restrict gitk to show only branch/merge commits?","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2009-05-06T07:42:34Z","receivedAt":"2009-05-06T07:42:34Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Josef Wolf wrote:\n> Hello,\n> \n> I would like gitk to show me only the heads, branch-points and\n> merge-points of branches.\n> \n> For example, given a history like this:\n> \n>                    d...e--F--g...h--H\n>                   /        \\\n>  a1--a2...an--b--C          N--o...p--P\n>                   \\        /\n>                    i...j--K--l...m--M\n> \n> I would like to see only\n> \n>  - a1     because it has no parent\n>  - C,F,K  because they are reachable from multiple heads\n>  - N      because it has multiple parents\n>  - H,M,P  because they are heads\n> \n> Ideally, there would be a possibility to add some \"context\" to the\n> list of commits to be shown: with $context==1, all the commits shown\n> in the above history would be shown, but the commits indicated by\n> the triple-dots would be omitted.\n> \n> The reason is that I have some repositories with several really long\n> linear history.  It is hard to get a global overview about the branch\n> history if you have to scroll constantly.\n> \n> Is something like that possible with gitk?\n\nNot today, no. I'm not sure how hard it would be to add, and as I'm a\ntcl-analphabet the chances of successfully implementing it marginally\nincreases if I don't work on it.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n\nRegister now for Nordic Meet on Nagios, June 3-4 in Stockholm\n http://nordicmeetonnagios.op5.org/\n\nConsidering the successes of the wars on alcohol, poverty, drugs and\nterror, I think we should give some serious thought to declaring war\non peace.\n"},{"id":"113073","messageId":"m37i0uoej7.fsf@localhost.localdomain","threadId":"19195","inReplyTo":"20090506072053.GL15420@raven.wolf.lan","subject":"Re: How to restrict gitk to show only branch/merge commits?","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2009-05-06T07:51:16Z","receivedAt":"2009-05-06T07:51:16Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Josef Wolf <jw@raven.inka.de> writes:\n\n> I would like gitk to show me only the heads, branch-points and\n> merge-points of branches.\n> \n> For example, given a history like this:\n> \n>                    d...e--F--g...h--H\n>                   /        \\\n>  a1--a2...an--b--C          N--o...p--P\n>                   \\        /\n>                    i...j--K--l...m--M\n> \n> I would like to see only\n> \n>  - a1     because it has no parent\n>  - C,F,K  because they are reachable from multiple heads\n>  - N      because it has multiple parents\n>  - H,M,P  because they are heads\n> \n> Ideally, there would be a possibility to add some \"context\" to the\n> list of commits to be shown: with $context==1, all the commits shown\n> in the above history would be shown, but the commits indicated by\n> the triple-dots would be omitted.\n> \n> The reason is that I have some repositories with several really long\n> linear history.  It is hard to get a global overview about the branch\n> history if you have to scroll constantly.\n> \n> Is something like that possible with gitk?\n\nI am not sure if it would give you exactly what you want, but if I\nunderstand correctly gitk accepts arguments for git-log (and you can\nset them somewhere in options, too).  Take a look at section \"History\nSimplification\" in git-log/git-rev-list manpage, in particular at\noption '--simplify-by-decoration' there.\n\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"}]}