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

Re: [PATCH] git-gui: use "blame -w -C -C" for "where did it come from, originally?"

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jun 22, 2007, 03:34 UTC
Message-ID
<20070622033456.GB17393@spearce.org>
In-Reply-To
<alpine.LFD.0.98.0706211243400.3593@woody.linux-foundation.org>
Linus Torvalds <torvalds@linux-foundation.org> wrote:
Show 17 quoted lines
> 
> On Thu, 21 Jun 2007, Linus Torvalds wrote:
> > 
> > I'd personally rather *not* have git-gui make the -w/-M/-C choice for me. 
> > Why don't you just allow the user to say? Sometimes I might want to see 
> > who introduced broken whitespace. Let me say
> > 
> > 	git gui blame -w filename.c
> > 
> > please? Instead of making that choice for me, and then blaming git for 
> > something that wasn't git's problem.
> 
> Side note - this ended up being one reason why "gitk" is so good. It just 
> passed down the arguments to "git-rev-list", and it allowed me to improve 
> on the original gitk without gitk ever even _realizing_ it was improved 
> upon. All the pathname filtering etc was done without gitk ever learning 
> about it - it "just worked".

Hmm. Good point about gitk. We all know you would rather not hack Tcl to enhance tools, because you would prefer to work directly in C.

A lot of the stuff rev-list does in pure C does translate directly into gitk, and its one of the features that I also love most about gitk. Except --reverse; gitk doesn't really like to do `gitk --reverse --all`. But it can be extremely amusing to run if you are bored and have time to waste.

However. The new blame viewer supports two columns, and runs two blame passes to obtain the information for them. I like that, because it offers up a lot of information in a single compact view. Which column do I send the option(s) to? Do I let the user specify which column to apply the options onto?

  git gui blame --left='-C -C' --right=   filename.c    ;# default
  git gui blame --left=-w      --right=-M filename.c    ;# not default

? Or do I only show one column if the user supplies command line options? Doesn't that limit the tool?

-- 
Shawn.
Previous: Linus Torvalds
Message 8 of 8 in “Cloning from a repo without "current branch"”
  1. Cloning from a repo without "current branch"Nanako Shiraishi, Jun 16, 2007
  2. Junio C HamanoJun 17, 2007
  3. Nanako ShiraishiJun 20, 2007
  4. Junio C HamanoJun 20, 2007
  5. Shawn O. PearceJun 21, 2007
  6. Linus TorvaldsJun 21, 2007
  7. Linus TorvaldsJun 21, 2007
  8. Shawn O. PearceJun 22, 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.