Re: [PATCH v2] difftool: don't overwrite modified files
- From
Matt McClure <matthewlmcclure@gmail.com>
- Date
- Mar 26, 2013, 20:52 UTC
- Message-ID
- <CAJELnLFxEa6v39ocVD+VLj9b86HhURsnFa+UKc+r3xYPLStSNw@mail.gmail.com>
- In-Reply-To
- <20130325214430.GG2286@serenity.lan>
On Mon, Mar 25, 2013 at 5:44 PM, John Keeping <john@keeping.me.uk> wrote:
> Instead of copying unconditionally when the files differ, create and > index from the working tree files and only copy the temporary file back > if it was modified and the working tree file was not. If both files > have been modified, print a warning and exit with an error.
When there's a conflict, does difftool save both conflicting files? Or only the working tree copy? I think it should preserve both copies on disk.
-- Matt McClure http://www.matthewlmcclure.com http://www.mapmyfitness.com/profile/matthewlmcclure