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

[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 22, 2013, 16:52 UTC
Message-ID
<1363971156.20287.5.camel@heisenberg.scientia.net>
Hi.

Right now, when I use difftool --dir-diff, the temp dirs are creates as e.g.: /tmp/git-difftool.QqP8x/left /tmp/git-difftool.QqP8x/right

Wouldn't it be nice, if instead of left/right... the specified commit name would be used?

e.g. /tmp/git-difftool.QqP8x/r1.1.1 /tmp/git-difftool.QqP8x/HEAD or /tmp/git-difftool.QqP8x/fd4e4005a4b7b3e638bc405be020b867f8881e72 /tmp/git-difftool.QqP8x/ce0747b74fccd20707b6f495068503e69e5473df

Cause then, one would see in the difftool which side is what, without the need to remember how git difftool was invoked.

Of course one might probably need to escape the commit names if they contain stuff like "/" or "..", etc.

Cheers, Chris.

Next: David Aguilar
Message 1 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.