Re: [FEATURE] difftool to provide meaningful names for temporary files
- From
- Eugene 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