From: Gioele Barabucci <gioele@svario.it>
To: git@vger.kernel.org
Subject: Merge driver not called for locally modified files?
Date: Sat, 2 Apr 2016 16:14:21 +0200 [thread overview]
Message-ID: <56FFD3BD.1060002@svario.it> (raw)
Hello,
it seems to me that merge drivers are not called while merging commits
that touch locally modified (but uncommited) files. Is this correct?
I made a (simple) merge driver for files in the `pw` format. [1] This
driver works correctly when a file is modified by multiple commits.
However, if a file has only been modified locally (and not committed),
then merging a commit that modifies the same file raises the following
error:
$ git merge --ff-only 78d4f09
Updating 5180202..78d4f09
error: Your local changes to the following files would
be overwritten by merge:
.local/share/pw/passwords
Please, commit your changes or stash them before you can merge.
Aborting
>From my experiments, it looks like the merge driver is not called at all.
Is it possible to configure git so that the merge driver is called also
while merging locally modified files?
Regards,
[1] https://github.com/gioele/pw/blob/master/bin/git-pw-merge
--
Gioele Barabucci <gioele@svario.it>
next reply other threads:[~2016-04-02 14:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-02 14:14 Gioele Barabucci [this message]
2016-04-02 16:21 ` Merge driver not called for locally modified files? Junio C Hamano
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=56FFD3BD.1060002@svario.it \
--to=gioele@svario.it \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.