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

Re: [FEATURE] difftool to provide meaningful names for temporary files

From
ESEugene Sajine <euguess@gmail.com>
Date
May 18, 2011, 21:54 UTC
Message-ID
<BANLkTimn4sYCFrLdPWOypwVNUBR5kMVqxg@mail.gmail.com>
In-Reply-To
<BANLkTikC6MhvEiw=7JKscN5iOPFzVGxJzA@mail.gmail.com>
Hi,

I noticed many times already that it is at times confusing to determine for new users which file versions are shown where in the graphical told like gvimdiff or kompare.

The problem is that when difftool machinery creates a temporary files to show in the editor it is creating them with some random hashes in the beginning of the file name.

Is it possible to make the difftool and mergetool smarter to have them to create those temporary files with meaningful names, f.e.:

If I specify: Git difftool master dev It will create the files with master and dev prefixes correspondingly, it will take the two points names and use them in temp file names. Master_file.txt vs dev_file.txt

If I specify: Git difftool It could take HEAD and local as name prefixes

Same for mergetool where it could use HEAD and incoming branch name as prefixes or something like that.

Does it make sense?

Thanks, Eugene

Next: David Aguilar
Message 1 of 2 in “Re: [FEATURE] difftool to provide meaningful names for temporary files”
  1. Eugene SajineMay 18, 2011
  2. David AguilarMay 20, 2011

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.