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

Re: Something wrong with pickaxe?

From
Linus Torvalds <torvalds@osdl.org>
Date
Jan 19, 2006, 02:59 UTC
Message-ID
<Pine.LNX.4.64.0601181855570.3240@g5.osdl.org>
In-Reply-To
<7vwtgxlysf.fsf@assigned-by-dhcp.cox.net>
On Wed, 18 Jan 2006, Junio C Hamano wrote:
> 
> You are so polite to say "non-intuitive" when you mean
> "useless".

No, no. I could imagine that it's useful, but I end up always instead doing "git whatchanged | less" and searching for it.

So I really mean that the semantics are so non-intuitive that I just can't use it, rather than totally useless.

Show 12 quoted lines
> For example, after I start debugging or code change, if I
> suspect the first "if (!nr_match) return;" is bogus in
> filter_refs() of fetch-pack.c, before declaring that code is
> bogus and start butchering it, I run something like this:
> 
> $ git whatchanged -p -S'static void filter_refs(struct ref **refs, int nr_match, char **match)
> {
> 	struct ref *prev, *current, *next;
> 
> 	if (!nr_match)
> 		return;
> ' master -- fetch-pack.c

See, this is what I mean - it looks useful, but it's just so subtle that I don't ever use it.

For example, getting the tabs/spaces right is basically impossible with normal cut-and-paste. I assume you do the above inside GNU emacs or some similar special-purpose setup, rather than anything generic.

		Linus
Previous: Junio C HamanoNext: Junio C Hamano
Message 8 of 9 in “Something wrong with pickaxe?”
  1. Johannes SchindelinJan 18, 2006
  2. Linus TorvaldsJan 18, 2006
  3. Junio C HamanoJan 19, 2006
  4. Andreas EricssonJan 19, 2006
  5. Junio C HamanoJan 19, 2006
  6. Andreas EricssonJan 19, 2006
  7. Junio C HamanoJan 19, 2006
  8. Linus TorvaldsJan 19, 2006
  9. Junio C HamanoJan 19, 2006

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.