Re: difftool -d symlinks, under what conditions
- From
Matt McClure <matthewlmcclure@gmail.com>
- Date
- Nov 27, 2012, 21:10 UTC
- Message-ID
- <CAJELnLHbNDCq1QecA9osxmKKNCaSghm9ADSt5tOrcdm=NF33og@mail.gmail.com>
- In-Reply-To
- <CAJDDKr4mTc8-FX7--pd7j0vUbdk_1+KU0YniKEhRdee6SaS-8Q@mail.gmail.com>
On Tuesday, November 27, 2012, David Aguilar wrote:
> It seems that there is an edge case here that we are not > accounting for: unmodified worktree paths, when checked out > into the temporary directory, can be edited by the tool when > comparing against older commits. These edits will be lost.
Yes. That is exactly my desired use case. I want to make edits while I'm reviewing the diff.
> > When we can do that then we avoid needing to have a temporary > directory altogether for any dir-diffs that involve the worktree.
I think the temporary directory is still a good thing. Without it, the directory diff tool would have no way to distinguish a file added in the diff from a file that was preexisting and unmodified.
-- Matt McClure http://www.matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure