git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* unexpected "unresolved merge conflict" for a new file
@ 2018-05-24 11:36 Michal Hocko
  2018-05-24 17:11 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Michal Hocko @ 2018-05-24 11:36 UTC (permalink / raw)
  To: git

Hi,
`git commit' fails on a newly added file with the following
*
* You have some suspicious patch lines:
*
* In Documentation/core-api/gfp_mask-from-fs-io.rst
* unresolved merge conflict (line 27)
Documentation/core-api/gfp_mask-from-fs-io.rst:27:=======

$ git status --porcelain 
A  Documentation/core-api/gfp_mask-from-fs-io.rst

$ git --version 
git version 2.17.0

from debian.

Btw. the suspicious line is
$ sed -n '27p' Documentation/core-api/gfp_mask-from-fs-io.rst
=======

I believe this is a bug because a new file cannot have a conflict by
definition and also there are no <<<<< in the file so there is no
unresolved conflict there. So I guess the heuristic should be more
clever.

Thanks!
-- 
Michal Hocko
SUSE Labs

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-25  7:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-24 11:36 unexpected "unresolved merge conflict" for a new file Michal Hocko
2018-05-24 17:11 ` Jeff King
2018-05-25  7:22   ` Michal Hocko

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).