git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-gui blame: show previous commit

From
Jakub Narebski <jnareb@gmail.com>
Date
Jul 29, 2007, 22:53 UTC
Message-ID
<f8j5oa$mmo$1@sea.gmane.org>
In-Reply-To
<87myxfzhk6.fsf@mid.deneb.enyo.de>
Florian Weimer wrote:
> How can I view the previous commit touching a specific line, so that I
> can see what was there before?  For instance, the change could be
> whitespace-only, so that I want to dig deeper.

You can always use "git blame -L<lineno>,+1 <revision> -- <file>". Or use pickaxe search, i.e. "git log -S'<fragment>' <revision> -- <file>".

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Shawn O. Pearce
Message 4 of 4 in “git-gui blame: show previous commit”
  1. Florian WeimerJul 29, 2007
  2. Johannes SchindelinJul 29, 2007
  3. Shawn O. PearceJul 30, 2007
  4. Jakub NarebskiJul 29, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.