git/list[1] front-page[2] threads[3] people[4] search[5] about
 

subtle bug in git-am

From
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date
Apr 7, 2020, 18:48 UTC
Message-ID
<20200407184823.GA3932679@smile.fi.intel.com>
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
Next: brian m. carlson
Message 1 of 4 in “subtle bug in git-am”
  1. Andy ShevchenkoApr 7, 2020
  2. brian m. carlsonApr 8, 2020
  3. Andy ShevchenkoApr 8, 2020
  4. Andy ShevchenkoApr 30, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.