From: alan@clueserver.org
To: git@vger.kernel.org
Subject: Problem with duplicated commits due to a merge
Date: Thu, 7 Apr 2016 13:22:07 -0700 [thread overview]
Message-ID: <5a7a3f4ea2636191c6a42d72b9bb34ab.squirrel@clueserver.org> (raw)
I help manage a Linux kernel repo for a large company. I have encountered
an odd problem that I think should not exist, but does.
At one point a merge was done from the development repo to the local
branch. Two of the existing commits have the same change to the same
location. At first glance they appear to be the same commit. The have the
same author and the same timestamp, but the comments are different and one
patch has an additional change.
It looks like an annotate was done to the comments of the local commit,
with an additional change picked up in the index. Then they did a git-pull
which merged in all the new commits, as well as the one old commit.
I didn't think that you could do a merge like that without a merge conflict.
The state of the files at HEAD seem correct, but the double commit causes
problems with using git-format-patch. (Both commits show up and wedge when
they get applied.)
Is this expected behavior? If so, why?
We have customers that expect to receive a collection of patches instead
of a git repo. (Yeah, I know. I am trying to convince them otherwise.)
What should happen in this case?
reply other threads:[~2016-04-07 20:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=5a7a3f4ea2636191c6a42d72b9bb34ab.squirrel@clueserver.org \
--to=alan@clueserver.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).