Re: [PATCH] Add --patchdepth parameter to git-am.sh
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Feb 5, 2007, 19:37 UTC
- Message-ID
- <20070205193700.GB8409@spearce.org>
- In-Reply-To
- <200702051924.39205.andyparkins@gmail.com>
Andy Parkins <andyparkins@gmail.com> wrote:
Show 6 quoted lines
> If the series of patches you are applying via git-am was based in a > different directory there was no way to strip the directory (as you > would with git-apply). > > This patch adds a --patchdepth option to git-am.sh whose argument is > passed as a "-p" option to git-apply.
Is there something wrong with -p<n>? Looking at git-am, -p is not currently accepted as an option. Its universally considered the depth parameter to standard `patch`, which is why git-apply also accepts it over --patchdepth.
I'd rather see git-am use the same arguments (when possible) as git-apply.
-- Shawn.