git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Thomas Rast <trast@student.ethz.ch>
Date
Feb 19, 2010, 22:34 UTC
Message-ID
<201002192334.52495.trast@student.ethz.ch>
In-Reply-To
<76c5b8581002191350h61d6d8c2jd0245c0963fcc85f@mail.gmail.com>
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
Previous: Eugene SajineNext: Eugene Sajine
Message 2 of 4 in “[BUG] ? - git log :/text results are strange”
  1. Eugene SajineFeb 19, 2010
  2. Thomas RastFeb 19, 2010
  3. Eugene SajineFeb 19, 2010
  4. Thomas RastFeb 19, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.