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

Re: Yet another Git tutorial

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 28, 2008, 23:34 UTC
Message-ID
<7v63u1blkm.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080428222717.GA6160@dpotapov.dyndns.org>
Dmitry Potapov <dpotapov@gmail.com> writes:
Show 16 quoted lines
> On Mon, Apr 28, 2008 at 02:39:46AM -0400, John Wiegley wrote:
>> I published another tutorial on Git today, this one describing the  
>> system from a "bottom up" perspective.  I know it's been written about  
>> this way before, but I was aiming at a bit more thoroughness, and a  
>> paced introduction to the basics.
>> 
>> There's a link to the PDF is in the following blog post:
>> 
>>   http://www.newartisans.com/blog_files/git.from.bottom.up.php
>
> In addition to what was mentioned before me:
>
> On page 6, instead of `git show --pretty=format:%T HEAD | head -1`, it
> is better to use `git log -1 --pretty=format:'%T' HEAD`. In general,
> `git show <commit-object>` is `git log -1 -p <commit-object>`, and
> you do not need diff here.

I may be misunderstanding what the discussion is about as I was not following the thread, but is this a contest to find the most expensive way to spell "git rev-parse HEAD^{tree}"?

Previous: Dmitry PotapovNext: Junio C Hamano
Message 10 of 14 in “Yet another Git tutorial”
  1. John WiegleyApr 28, 2008
  2. Johan HerlandApr 28, 2008
  3. John WiegleyApr 28, 2008
  4. Jeff KingApr 28, 2008
  5. Brian GernhardtApr 28, 2008
  6. Paolo BonziniApr 28, 2008
  7. Brian GernhardtApr 28, 2008
  8. Bob HiestandApr 28, 2008
  9. Dmitry PotapovApr 28, 2008
  10. Junio C HamanoApr 28, 2008
  11. Junio C HamanoApr 29, 2008
  12. Matt GrahamApr 29, 2008
  13. John WiegleyApr 30, 2008
  14. Robert HainesApr 30, 2008

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.