git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* subtle bug in git-am
@ 2020-04-07 18:48 Andy Shevchenko
  2020-04-08  1:18 ` brian m. carlson
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Shevchenko @ 2020-04-07 18:48 UTC (permalink / raw)
  To: git; +Cc: andy.shevchenko

Hi!

What I would like to do is to apply patch from one repository to another with
same files but *different directory structure*.

When I try to change directory in the target repo to the folder of files, I run
git-am -p5 my_cool_patch.patch.

Instead of the expected result (files and their contents is the same!) I got
fileXXX is not in index.

So, I think this is a bug, because -p<n> use in git-am makes little to no sense
without above feature.

Perhaps I didn't understand something.
Please, advise.

$ git version
git version 2.25.1


-- 
With Best Regards,
Andy Shevchenko



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

end of thread, other threads:[~2020-04-30 14:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-07 18:48 subtle bug in git-am Andy Shevchenko
2020-04-08  1:18 ` brian m. carlson
2020-04-08  9:29   ` Andy Shevchenko
2020-04-30 14:26     ` Andy Shevchenko

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