From: Andreas Schwab <schwab@linux-m68k.org>
To: git@vger.kernel.org
Subject: Re: Merge without marking conflicts in working tree
Date: Tue, 18 Nov 2014 00:20:29 +0100 [thread overview]
Message-ID: <87sihhza6a.fsf@igel.home> (raw)
In-Reply-To: <20141117223836.GH615@pug.qqx.org> (Aaron Schrab's message of "Mon, 17 Nov 2014 17:38:36 -0500")
Aaron Schrab <aaron@schrab.com> writes:
> Is there a way to do a merge but only record conflicts in the index, not
> update the working versions of files with conflict markers?
>
> Like many people, I use git to manage configuration files for my shell,
> editor, git itself, and a number of other things. The vast majority of
> times that I update things no conflicts are occur and everything just
> works, so I'd like to avoid extra work in this case. But occasionally a
> conflict will occur, and if it's in a file that will be read while trying
> to resolve the conflict this can make things more difficult.
You could perform the merge in a separate working directory. The only
extra step required is a checkout to deploy the new revision, which
could be triggered automatically by a hook.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
prev parent reply other threads:[~2014-11-17 23:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-17 22:38 Merge without marking conflicts in working tree Aaron Schrab
2014-11-17 23:19 ` Junio C Hamano
2014-11-17 23:20 ` Andreas Schwab [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sihhza6a.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).