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

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
Previous: Nikola Knežević
Message 4 of 4 in “format-patch problem when using relative”
  1. Nikola KneževićNov 26, 2008
  2. Jeff KingNov 26, 2008
  3. Nikola KneževićNov 26, 2008
  4. Björn SteinbrinkNov 27, 2008

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.