git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: git@vger.kernel.org
Cc: andy.shevchenko@gmail.com
Subject: subtle bug in git-am
Date: Tue, 7 Apr 2020 21:48:23 +0300	[thread overview]
Message-ID: <20200407184823.GA3932679@smile.fi.intel.com> (raw)

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



             reply	other threads:[~2020-04-07 18:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-07 18:48 Andy Shevchenko [this message]
2020-04-08  1:18 ` subtle bug in git-am brian m. carlson
2020-04-08  9:29   ` Andy Shevchenko
2020-04-30 14:26     ` Andy Shevchenko

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200407184823.GA3932679@smile.fi.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=andy.shevchenko@gmail.com \
    --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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).