Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wed, 27 Aug 2008, Jeff Garzik wrote:
> 
> I use it to spit out a patch for a specific commit:
> 
> 	git-diff-tree -p $COMMIT

Use

	git show $COMMIT

instead, which is shorter and gives you the log too, and uses a pager by 
default. And defaults to HEAD, so you don't even need to say $COMMIT if 
you want to see the top one. IOW, much nicer is so many ways.

Yeah, the "much nicer" obviously does mean "different". If you _rely_ on 
the fact that you don't get a pager (you just want to scroll youself), or 
you really don't want to see what the commit message was all about, then 
'git diff-tree' is obviously "better".

But at least personally, I really don't know when I last wanted to have 
anything else than 'git show' for showing a commit.

			Linus
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux