Re: Git terminology: remote, add, track, stage, etc.

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

 



On 21 Oct 2010, at 13:20, Drew Northup wrote:

> Ok, so what will "git stage" do when a change of a file is already
> staged and it is executed again (on new changes)?

Presumably what it already does: nothing. But one could argue that the more public-relations minded command “git stage” should give better feedback. Like so:

> $ git commit 
> $ ... edit A.txt ...
> $ git stage B.txt
> git stage: Did nothing. No uncommitted changes to stage in B.txt.
> $ git stage A.txt
> $ git stage A.txt
> git stage: Did nothing. Changes in A.txt already staged. Use `git diff --staged A.txt` to see them.
--
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]