Thread (4 messages) 4 messages, 2 authors, 2016-06-15

Re: [BUG] ? - git log :/text results are strange

flat view

From: Eugene Sajine <hidden>
Date: 2016-06-15 22:48:19

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 [off-list ref] wrote:
On Friday 19 February 2010 22:50:39 Eugene Sajine wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help