git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eugene Sajine <euguess@gmail.com>
To: Thomas Rast <trast@student.ethz.ch>, git@vger.kernel.org
Subject: Re: [BUG] ? - git log :/text results are strange
Date: Fri, 19 Feb 2010 18:41:32 -0500	[thread overview]
Message-ID: <76c5b8581002191541x95c3378je6f0528c11aaba4f@mail.gmail.com> (raw)
In-Reply-To: <201002192334.52495.trast@student.ethz.ch>

oh. I see, thanks!

I had to do

$git log --pretty=oneline | grep fix

to get what i wanted...

On Fri, Feb 19, 2010 at 5:34 PM, Thomas Rast <trast@student.ethz.ch> wrote:
> On Friday 19 February 2010 22:50:39 Eugene Sajine wrote:
>> When I’m executing
>> $ git log :/fix
>>
>> I expect to see commits with messages starting from word “fix” only
>
> You're not putting the puzzle together in the right way.  The chain
> goes roughly like this:
>
> * git-log wants to know what its arguments resolve to
>
>  * (the internal equivalent of) git-rev-parse works out that :/fix is
>    a525d2a, as it (apparently) is the youngest commit with a message
>    starting with 'fix' (see man git-rev-parse)
>
> * git-log feeds a525d2a to the revision walker
>
>  * the revision walker starts outputting commits backwards through
>    history, starting from a525d2a
>
> and unsurprisingly, the log you pasted is just 'git log a525d2a'.
>
> --
> Thomas Rast
> trast@{inf,student}.ethz.ch
>

  reply	other threads:[~2010-02-19 23:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-19 21:50 [BUG] ? - git log :/text results are strange Eugene Sajine
2010-02-19 22:34 ` Thomas Rast
2010-02-19 23:41   ` Eugene Sajine [this message]
2010-02-19 23:45     ` Thomas Rast

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=76c5b8581002191541x95c3378je6f0528c11aaba4f@mail.gmail.com \
    --to=euguess@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=trast@student.ethz.ch \
    /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 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 NNTP newsgroup(s).