From: Shawn O. Pearce Date: Mon, 05 Feb 2007 19:37:00 GMT Subject: Re: [PATCH] Add --patchdepth parameter to git-am.sh Message-ID: <20070205193700.GB8409@spearce.org> In-Reply-To: <200702051924.39205.andyparkins@gmail.com> Andy Parkins wrote: > 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? 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.