git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Odd issue with Git-am
@ 2015-11-20 21:02 alan
  2015-11-20 21:22 ` Stefan Beller
  0 siblings, 1 reply; 2+ messages in thread
From: alan @ 2015-11-20 21:02 UTC (permalink / raw)
  To: git

The following describes bad behavior, but it is bad behavior that git-am
does not flag as bad. It just drops data silently.

I have a developer who has a patch that I am importing into git with
git-am.  (Currently they have a quilt-like setup that is full of bad and
incomplete patches.)

At some point in the past, someone hand edited the patch and added two
lines. They did not, however, change the @@ references in the patch for
the line count.

The patch added a file. The line that contained the length of the file was
"@@ -0,0 +0,1155 @@" instead of "@@ -0,0 +0,1157 @@". The result was that
when the patch was applied it silently dropped the last two lines of the
file.

My assumption is that it should either apply the full file and/or throw an
error. This just drops data silently.

Yes people should not be editing patches by hand. This migration is part
of the effort to get them to stop doing that.

Shouldn't git-am detect that the patch data and the meta data do not match
and warn the user or am I just being too damn picky here?

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

end of thread, other threads:[~2015-11-20 21:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-20 21:02 Odd issue with Git-am alan
2015-11-20 21:22 ` Stefan Beller

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