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

Re: [PATCH 6/7] Add an optional limit to git-formatpatch

From
Junio C Hamano <junkio@cox.net>
Date
Jan 8, 2006, 09:30 UTC
Message-ID
<7vpsn312zg.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060108004059.GN1113@nowhere.earth>
Yann Dirson <ydirson@altern.org> writes:
> We may not want to format all patches since the merge base.
I am unsure about this one for a few reasons.
 - If you have:
           topic~3--topic~2--topic~1--topic
          /      
	MB--*--*--*--upstream
   and you do "not want to format all patches since the merge
   base", instead of "format-patch --limit=topic~2 master topic",
   you could just say "format-patch topic~2 topic", so this
   feature seems unnecessary.  Maybe I am not reading you right.
 - Even if the idea of having limit makes sense, only one limit
   can be specified, but you can have multiple (upstream,mine)
   pairs.  Your --limit applies the single limit to all of them.
   I am not sure if that makes sense either.
   I'd expect the limit value to be per (upstream,mine) pair,
   making "# Now we have what we want in $@" for-loop to iterate
   over (upstream,mine,limit) 3-tuples.
   Internally an (upsteam,mine) pair is canonicalized to be a
   single string "upstream..mine", so extending the canonical
   syntax somehow, say, "upstream..mine..limit" where empty
   "limit" means "use the merge base", might make sense.  I
   dunno.
 - One thing that comes to mind is to deal with this structure:
         topic~5--topic~4--topic~3--topic~2--topic~1--topic
       /                  /
      Z--*--*--*--*--*--MB--*--*--*--upstream
   and you do want to include commits older than topic~3 because
   they have not been picked up by the upstream.  In such a
   scenario, specifying commit Z as the "limit" may make sense.
   It is not "limit", but is what ASCII drawing in git-cherry
   calls "fork-point".  Is that what you are doing (the commit
   log suggests otherwise and you want to get less than what
   merge base gives you)?
Previous: Yann Dirson
Message 2 of 2 in “Add an optional limit to git-formatpatch”
  1. 6/7 Add an optional limit to git-formatpatchYann Dirson, Jan 8, 2006
  2. Junio C HamanoJan 8, 2006

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.