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
Junio C Hamano <gitster@pobox.com>
Date
Jan 13, 2015, 22:28 UTC
Message-ID
<xmqqiogaco3m.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CAGZ79kYJ+XNktc7_C81xz=BfCP4_hrE=pWW5QGJ1kdXKMf4Jjw@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
> Another idea would be to take the first commit which is pointed to by
> another branch as the first commit in the commit range.

Trying to figure out what happened from the topology of the history is certainly attractive proposition, but I suspect that it would be too fragile to be practically useful. The other topic you may have based your work on may have advanced independently (e.g. a "oops, I forgot this one" bugfix), resulting in a fork like this:

 ---o---o---o---o (fixed reflog-expire)
             \
              x---x---x (atomic-push)

and the fork-point is no longer at the tip of anything. "Excluding anything that is on another branch" would cover the forked case much better, but that is only true if there is no integration branch like 'pu' or 'next', in which case, only an early part of atomic-push may already be part of another branch 'next' while the remainder is not, or the entirety of atomic-push may be part of another branch 'pu'.

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 ;-)
Previous: Stefan BellerNext: Jeff King
Message 6 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.