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

Re: post-update script to update wc - version 2

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jun 27, 2007, 12:43 UTC
Message-ID
<81b0412b0706270543s7dd37e3ds1acfe671f647617@mail.gmail.com>
In-Reply-To
<7vved9pv2h.fsf@assigned-by-dhcp.pobox.com>
On 6/27/07, Junio C Hamano <gitster@pobox.com> wrote:
Show 18 quoted lines
> "Alex Riesen" <raa.lkml@gmail.com> writes:
> > On 6/27/07, Sam Vilain <sam@vilain.net> wrote:
> >> Sam Vilain wrote:
> >> >         this_tree=`git-cat-file commit $commit | awk '/^tree/ { print $2; exit }'`
> >>
> >> Of course on newer git, `git-rev-parse $commit:` will do that.
> >
> > Are you sure? Maybe you mean git-rev-parse "$commit"^{tree}?
>
> I had the same "Huh?"  moment as you had, but what Sam said is
> correct.  He is being too clever to confuse us ;-).
>
> When "$commit" is a tree-ish,
>
>         $commit:$path
>
> is the name of the tree or blob object at that $path, and as
> very strange special case, an empty $path is the whole tree.

I didn't even see the colon. That's GMail, they obviously have no idea what font should be used for the mail of a technical user.

Previous: Junio C HamanoNext: Sam Vilain
Message 5 of 9 in “post-update script to update wc - version 2”
  1. Sam VilainJun 27, 2007
  2. Sam VilainJun 27, 2007
  3. Alex RiesenJun 27, 2007
  4. Junio C HamanoJun 27, 2007
  5. Alex RiesenJun 27, 2007
  6. Sam VilainJun 27, 2007
  7. Steven GrimmJun 27, 2007
  8. Sam VilainJun 27, 2007
  9. Johannes SchindelinJun 27, 2007

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.