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

Re: [FEATURE-REQUEST] difftool --dir-diff: use the commit names as directory names instead of left/right

From
Christoph Anton Mitterer <calestyo@scientia.net>
Date
Mar 23, 2013, 15:30 UTC
Message-ID
<1364052618.5363.5.camel@fermat.scientia.net>
In-Reply-To
<20130323123603.GL2283@serenity.lan>
On Sat, 2013-03-23 at 12:36 +0000, John Keeping wrote:
Show 5 quoted lines
> > What do you all think about something like the output of
> > "git describe --always" instead of the SHA-1?
> I think Christoph was suggesting that it should use the revision as
> specified by the user, presumably falling back to HEAD when only one
> revision has been specified.

That was the idea... cause it has the best chance of being somehow remembered/recognised by the user... Taking any description, doesn't necessarily mean that the user has ever seen this before or remembers it.

Show 5 quoted lines
> I suspect in that case we have
> to be careful about special characters, perhaps it's best to just fall
> back to the SHA1 if we encounter something like
> "origin/master^{/^diff.c}" which is likely to cause issues with shell
> quoting.

Or maybe just pseudo-quote any such special characters by "_". Otherwise,... one might have to many cases, where one falls back to the SHA1... and looses a lot of the benefits.

Cheers, Chris.

Previous: John Keeping
Message 4 of 4 in “[FEATURE-REQUEST] difftool --dir-diff: use the commit names as directory names instead of left/right”
  1. Christoph Anton MittererMar 22, 2013
  2. David AguilarMar 23, 2013
  3. John KeepingMar 23, 2013
  4. Christoph Anton MittererMar 23, 2013

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.