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

Re: [PATCH] format-patch: print format-patch usage if there are no arguments

From
Jeff King <peff@peff.net>
Date
Jan 13, 2015, 22:45 UTC
Message-ID
<20150113224531.GB3144@peff.net>
In-Reply-To
<xmqqiogaco3m.fsf@gitster.dls.corp.google.com>
On Tue, Jan 13, 2015 at 02:28:13PM -0800, Junio C Hamano wrote:
Show 5 quoted lines
> On the other hand, "I am forked from building on this one" done with
> "checkout -t" is an explicit mark the user leaves, so it would serve
> as a better hint to base the default heuristics on, I think.
> 
> But nobody is asking for such a feature ;-)

FWIW, I very rarely run format-patch directly, but have a wrapper script that dumps the patches into a tempfile and runs mutt. I taught it in 2007 to use the upstream branch as the default[1], and was puzzled reading the start of this thread, thinking we already did that.

So that is perhaps not asking for the feature (I am already happy with my homegrown wrapper), but is maybe an endorsement of it. :)

-Peff
[1] You may note in 2007 that we did not even have @{upstream}. I
    implemented it manually using git-config! Then in 2009, I switched
    it to use for-each-ref's "%(upstream)" placeholder. Literally 5 days
    later, Dscho introduced @{upstream}, but I never got around to
    switching. Maybe now it is time. :)
Previous: Junio C HamanoNext: Stefan Beller
Message 7 of 10 in “format-patch: print format-patch usage if there are no arguments”
  1. format-patch: print format-patch usage if there are no argumentsAlexander Kuleshov, Jan 13, 2015
  2. Junio C HamanoJan 13, 2015
  3. Alexander KuleshovJan 13, 2015
  4. Junio C HamanoJan 13, 2015
  5. Stefan BellerJan 13, 2015
  6. Junio C HamanoJan 13, 2015
  7. Jeff KingJan 13, 2015
  8. Stefan BellerJan 13, 2015
  9. my hacky mutt-specific format-patch workflowJeff King, Jan 14, 2015
  10. Junio C HamanoJan 13, 2015

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.