From: Michael J Gruber <git@drmicha.warpmail.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: Jay Soffian <jaysoffian@gmail.com>, git@vger.kernel.org
Subject: Re: [PATCH] log --children
Date: Tue, 04 Oct 2011 22:27:59 +0200 [thread overview]
Message-ID: <4E8B6C4F.1090507@drmicha.warpmail.net> (raw)
In-Reply-To: <7vpqicbj8w.fsf@alter.siamese.dyndns.org>
Junio C Hamano venit, vidit, dixit 04.10.2011 22:21:
> Michael J Gruber <git@drmicha.warpmail.net> writes:
>
>>> @@ -414,6 +422,8 @@ void show_log(struct rev_info *opt)
>>> fputs(find_unique_abbrev(commit->object.sha1, abbrev_commit), stdout);
>>> if (opt->print_parents)
>>> show_parents(commit, abbrev_commit);
>>> + if (opt->children.name)
>>> + show_children(opt, commit, abbrev_commit);
>>
>> That means that "log --children --parents" will print out the parents'
>> sha1s, then the children's. Is that a good default format, or should we
>> somehow deal with the case when both are specified?
>
> I think these two options are muturally exclusive, not because of the
> "mixed output getting confusing" reasons but because of traversal reasons.
> IIRC, when parent rewriting is in effect, you cannot just say "a commit
> that has these commits on its parents list is a child of these commits",
> as you have to orphan and adopt it as a child of ancestor commits, which
> the code introduced in f35f5603 does not do.
>
I didn't think --parents would switch on rewriting, but I guess all is good:
git rev-list -5 --parents --children origin/next
fatal: cannot combine --parents and --children
Should be the same for log.
Michael
next prev parent reply other threads:[~2011-10-04 20:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-04 14:02 [PATCH] log --children Jay Soffian
2011-10-04 20:12 ` Michael J Gruber
2011-10-04 20:21 ` Junio C Hamano
2011-10-04 20:27 ` Michael J Gruber [this message]
2011-10-04 20:45 ` [PATCH v2] " Jay Soffian
2011-10-04 20:51 ` Michael J Gruber
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=4E8B6C4F.1090507@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jaysoffian@gmail.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.