git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Andreas Gruenbacher <agruenba@redhat.com>
Cc: git@vger.kernel.org, Jonas Fonseca <jonas.fonseca@gmail.com>
Subject: Re: [PATCH] Inconsistency between git log and git rev-parse for ^HEAD^@
Date: Sat, 18 Mar 2017 13:18:18 -0700	[thread overview]
Message-ID: <xmqq7f3m1gqd.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <1489866696-17487-1-git-send-email-agruenba@redhat.com> (Andreas Gruenbacher's message of "Sat, 18 Mar 2017 20:51:36 +0100")

Andreas Gruenbacher <agruenba@redhat.com> writes:

> Hello,
>
> the log and rev-parse commands both support the rev^@ syntax which stands for
> all parents of rev.  The log command also supports ^rev^@ to exclude all of the
> parents of rev, but rev-parse does not.  Should this be fixed?
>
> If so, the following patch would be a start.

Hmph, would ^A..B and ^A...B also be turned into B..A and B...A in a
similar way?  I think the latter would not make much sense but ^A..B
might.

In any case, accepting ^rev^@ may make sense nevertheless.


  reply	other threads:[~2017-03-18 20:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-18 19:51 [PATCH] Inconsistency between git log and git rev-parse for ^HEAD^@ Andreas Gruenbacher
2017-03-18 20:18 ` Junio C Hamano [this message]
2017-03-18 21:26   ` Andreas Gruenbacher

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to=xmqq7f3m1gqd.fsf@gitster.mtv.corp.google.com \
    --to=gitster@pobox.com \
    --cc=agruenba@redhat.com \
    --cc=git@vger.kernel.org \
    --cc=jonas.fonseca@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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).