Re: A few usability question about git diff --cached

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

 



El 4/10/2007, a las 16:34, Johannes Schindelin escribió:

On Thu, 4 Oct 2007, Junio C Hamano wrote:

 * --cached means work only on index and ignore work tree.

I guess I could live with "--staged" as a synonym for "--cached" (and
maybe deprecating "--cached").

Good idea. I think that would partly address the consistency problems, be more accessible to new users, and easier to explain in the documentation.

Not that it makes much difference to me personally. One of the first things I did when I started using Git was set up two shell aliases (not Git aliases) seeing as looking at my staged and unstaged changes is for me such an extremely frequent operation:

  alias staged='git diff --cached'
  alias unstaged='git diff'

Cheers,
Wincent

-
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