Re: difftool fails with dangling symlinks, writes to targets outside of the repository
- From
- Philippe <bqobctqyemmeacqxbrsaury3l4ka@quarantine.de>
- Date
- Dec 2, 2019, 12:23 UTC
- Message-ID
- <c23d23d8-8a08-9ee7-d148-77b1f4611606@quarantine.de>
- In-Reply-To
- <7e04799d-c03c-ac28-604d-ec4d30029d44@quarantine.de>
Hi all,
since that "difftool overwrites files outside of the git repository"-thingy is apparently not considered a bug, could you please point me to the correct usage of difftool or a workaround?
To recall the situation:
- git repo contains a symlink pointing outside of the repository to a
non-existing file
- that symlink gets replaced by a regular file
- using 'git difftool -d ${oldstate}..${newstate}' overwrites the file
the symlink was pointing to (which might fail if the target is not writable)Kind regards
Philippe