Re: If you would write git from scratch now, what would you change?

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

 




Quoting Andy Parkins <andyparkins@xxxxxxxxx>:

 - "index", "cached" and "stage" are a definite source of confusion

Hear, hear.

 - "git add" and "git rm" would be nicer as "git stage" and "git unstage"
   (or something similar)

Not sure it would be that easy. (As I have just learned recently) "git rm" is the opposite of "git add" _only_ in the case of files-not-previously-tracked. And the opposite of "git add <file>" for files-already-being-tracked is "git reset HEAD -- <file>", which is probably where you were going with "git unstage" 8-) .

 - libgit would have come first
 - "git revert" should be called "git invert"
 - "git revert" would (maybe) be "git reset"
 - "git clone" wouldn't exist

Why? AFAIC, git clone works out quite well - both functionality and naming wise.

Cheers.
--
Jing Xue

-
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