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

Re: how do you review auto-resolved files

From
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Date
Feb 22, 2012, 15:24 UTC
Message-ID
<4F4508CA.9050707@in.waw.pl>
In-Reply-To
<7vhayjga0a.fsf@alter.siamese.dyndns.org>
On 02/21/2012 10:19 PM, Junio C Hamano wrote:
Show 6 quoted lines
> Imagine that you are the maintainer of the mainline and are reviewing the
> work made on a side branch that you just merged, but pretend that the
> contribution came as a patch instead.  How would you assess the damage to
> your mainline?
>
> You would use "git show --first-parent $commit" for that.
Hi,
it seems that git show --first-parent is not documented in the man page.
This option is only documented for rev-list and log. I think that
- this example should land in Examples in git-show.txt
- --first-parent should be documented in git-show.txt because it (at 
least to me, but I guess that for other people also) it isn't 
immediately obvious that it means to _diff_ with the first parent.

-- Zbyszek

Previous: Jeff KingNext: Junio C Hamano
Message 5 of 6 in “how do you review auto-resolved files”
  1. Neal KreitzingerFeb 21, 2012
  2. Junio C HamanoFeb 21, 2012
  3. Neal KreitzingerFeb 21, 2012
  4. Jeff KingFeb 22, 2012
  5. Zbigniew Jędrzejewski-SzmekFeb 22, 2012
  6. Junio C HamanoFeb 21, 2012

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.