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

Re: [PATCH v5] revision: new rev^-n shorthand for rev^n..rev

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 27, 2016, 18:08 UTC
Message-ID
<xmqqy42dnrl8.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20160927083249.31869-1-vegard.nossum@oracle.com>
Vegard Nossum <vegard.nossum@oracle.com> writes:
Show 8 quoted lines
> "git log rev^..rev" is commonly used to show all work done on and merged
> from a side branch. This patch introduces a shorthand "rev^-" for this
> and additionally allows "rev^-$n" to mean "reachable from rev, excluding
> what is reachable from the nth parent of rev". For example, for a
> two-parent merge, you can use rev^-2 to get the set of commits which were
> made to the main branch while the topic branch was prepared.
>
> Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Very nicely done.  Thanks for a pleasant read.
Will queue.
Previous: Vegard Nossum
Message 2 of 2 in “revision: new rev^-n shorthand for rev^n..rev”
  1. revision: new rev^-n shorthand for rev^n..revVegard Nossum, Sep 27, 2016
  2. Junio C HamanoSep 27, 2016

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.