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, Aug 27, 2008 at 04:38:13PM -0400, Jeff Garzik wrote:

> I use it to spit out a patch for a specific commit:
>
> 	git-diff-tree -p $COMMIT
>
> Though probably someone will now come along and tell me I'm am old-timer, 
> and there is a shorter command that accomplishes the same thing :)

Actually, that is something that diff-tree does better (a single
tree-ish with git-diff is "compare against working tree"). To do it with
git-diff you would have to use the obscure (and not very shell-friendly)
syntax:

  git diff $COMMIT^!

Although interactively, I tend to use "git show" for this purpose,
though perhaps you intentionally don't want to see the commit message.

Anyway, thank you for satisfying my curiosity.

-Peff
--
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