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

Re: difftool fails with dangling symlinks, writes to targets outside of the repository

From
PPhilippe <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
Previous: Philippe
Message 2 of 2 in “difftool fails with dangling symlinks, writes to targets outside of the repository”
  1. PhilippeNov 22, 2019
  2. PhilippeDec 2, 2019

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.