{"thread":{"id":"9286","subject":"git-gui blame: show previous commit","startedAt":"2007-07-29T09:26:49Z","lastAt":"2007-07-30T03:43:14Z","messageCount":4,"participants":["Florian Weimer","Johannes Schindelin","Jakub Narebski","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"48971","messageId":"87myxfzhk6.fsf@mid.deneb.enyo.de","threadId":"9286","inReplyTo":null,"subject":"git-gui blame: show previous commit","fromName":"Florian Weimer","fromEmail":"fw@deneb.enyo.de","sentAt":"2007-07-29T09:26:49Z","receivedAt":"2007-07-29T09:26:49Z","isPatch":false,"sender":{"key":"fw@deneb.enyo.de","avatar":null},"body":"How can I view the previous commit touching a specific line, so that I\ncan see what was there before?  For instance, the change could be\nwhitespace-only, so that I want to dig deeper.\n"},{"id":"48979","messageId":"Pine.LNX.4.64.0707291238230.14781@racer.site","threadId":"9286","inReplyTo":"87myxfzhk6.fsf@mid.deneb.enyo.de","subject":"Re: git-gui blame: show previous commit","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-07-29T11:40:34Z","receivedAt":"2007-07-29T11:40:34Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Sun, 29 Jul 2007, Florian Weimer wrote:\n\n> How can I view the previous commit touching a specific line, so that I\n> can see what was there before?  For instance, the change could be\n> whitespace-only, so that I want to dig deeper.\n\nIf you want to ignore whitespace changes, try the option \"-w\" to \"git \nblame\".  I have no idea if \"git-gui blame\" can use that option, but it \nshould not be hard for you to find out, and provide a patch if it does \nnot yet.\n\nHth,\nDscho\n"},{"id":"49018","messageId":"f8j5oa$mmo$1@sea.gmane.org","threadId":"9286","inReplyTo":"87myxfzhk6.fsf@mid.deneb.enyo.de","subject":"Re: git-gui blame: show previous commit","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-07-29T22:53:00Z","receivedAt":"2007-07-29T22:53:00Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Florian Weimer wrote:\n\n> How can I view the previous commit touching a specific line, so that I\n> can see what was there before?  For instance, the change could be\n> whitespace-only, so that I want to dig deeper.\n\nYou can always use \"git blame -L<lineno>,+1 <revision> -- <file>\". Or use\npickaxe search, i.e. \"git log -S'<fragment>' <revision> -- <file>\".\n\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"},{"id":"49048","messageId":"20070730034314.GQ20052@spearce.org","threadId":"9286","inReplyTo":"Pine.LNX.4.64.0707291238230.14781@racer.site","subject":"Re: git-gui blame: show previous commit","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-07-30T03:43:14Z","receivedAt":"2007-07-30T03:43:14Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> On Sun, 29 Jul 2007, Florian Weimer wrote:\n> \n> > How can I view the previous commit touching a specific line, so that I\n> > can see what was there before?  For instance, the change could be\n> > whitespace-only, so that I want to dig deeper.\n> \n> If you want to ignore whitespace changes, try the option \"-w\" to \"git \n> blame\".  I have no idea if \"git-gui blame\" can use that option, but it \n> should not be hard for you to find out, and provide a patch if it does \n> not yet.\n\ngitgui-0.7.4-35-ga840566 is a change from Junio to enable the\n-w flag to git-blame if the underlying git is 1.5.3 or later.\nSo you'd need a pretty recent git-gui and a 1.5.3-rc0 or later\ngit binary underneath of it to get -w enabled in blame.  But it is\nthere for the original line annotation pass (the second blame pass\nbut first column displayed).\n\nI keep meaning to add a \"Show parent commit\" in the context menu\nof the blame viewer, but I haven't gotten around to it yet.\nIt has been requested a few times, just hasn't been done yet.\nMaybe someone who wants it will submit a patch.  ;-)\n\nIn really recent git-gui (gitgui-0.7.5-76-g8e891fa and later) you\ncan browse any revision you want, so you could copy the commit SHA-1\nfrom the lower pane and paste it in as \"$sha1^\" into the revision\nexpression field of the browse dialog, navigate to the file and\nopen the blame viewer.  That is really annoying, and doesn't jump\nyou to the correct lines automatically.  But it is possible to view\nthe parent.\n\n-- \nShawn.\n"}]}