All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@qumranet.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Document git rev-list --first-parent
Date: Mon, 24 Dec 2007 10:36:37 +0200	[thread overview]
Message-ID: <476F6F95.1030506@qumranet.com> (raw)
In-Reply-To: <7v3atstry4.fsf@gitster.siamese.dyndns.org>

Junio C Hamano wrote:
> Avi Kivity <avi@qumranet.com> writes:
>
>   
>> Document git rev-list's --first-parent option.  Documentation taken from
>> git log.
>> ...
>> +--first-parent::
>> +	Follow only the first parent commit upon seeing a merge
>> +	commit.  This  option gives a better overview of the
>> +	evolution of a particular branch.
>> +
>>     
>
> I am afraid that this description is not sufficient.  The
> history given by --first-parent is useful only in a very limited
> use case, and the user needs to be aware of it.
>   

I don't know which use case you are referring to; I can describe my own:

I have a post-receive hook which sends all patches since the last push.  
To avoid sending the constituent commits of a pull, I use --first-parent 
to throw away anything I did not commit directly.

[Initially I used ^origin to cancel out these merges, but that failed as 
soon as I merged from some other branch]

I'm not sure this is what you meant.  Let me know, and I will update the 
patch.

-- 
error compiling committee.c: too many arguments to function

  reply	other threads:[~2007-12-24  8:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-24  8:20 [PATCH] Document git rev-list --first-parent Avi Kivity
2007-12-24  8:30 ` Junio C Hamano
2007-12-24  8:36   ` Avi Kivity [this message]
2007-12-24  9:13     ` Junio C Hamano
2007-12-24  9:40       ` Avi Kivity
2007-12-24  9:58         ` Junio C Hamano
2007-12-24 10:14           ` Avi Kivity
2007-12-24 16:37             ` Avi Kivity
2007-12-25  9:35             ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=476F6F95.1030506@qumranet.com \
    --to=avi@qumranet.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.