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}"?