Re: format-patch problem when using relative
- From
Björn Steinbrink <b.steinbrink@gmx.de>
- Date
- Nov 27, 2008, 09:42 UTC
- Message-ID
- <20081127094258.GA12018@atjola.homenet>
- In-Reply-To
- <06D676E3-6C24-4ACC-9874-8B19549BC3A1@gmail.com>
On 2008.11.26 19:58:34 +0100, Nikola Knežević wrote:
Show 10 quoted lines
> On 26 Nov 2008, at 19:01 , Jeff King wrote: > >> So I think what you really want is: >> >> git format-patch --relative=click click/master myclick -- click >> >> to limit the path pruning to the 'click' directory. > > Yes, that did the trick. Also, when I think about it, it makes sense - > do checks relative to a path, but prune using path.
Ah, now that makes sense to me, too. You just didn't use the actual command I told you on IRC ;-)
<doener> git format-patch --relative=click/ click/master click
That already had the path limiting "click" in it, I really meant "click" there, not "myclick" ;-) I guess the confusion was caused by how format-patch takes the range it's supposed to work on. If you only give it a single committish, that is interpreted as "since". So the above is equal to
git format-patch --relative=click/ click/master..HEAD click
Björn