Re: If you would write git from scratch now, what would you change?
- From
- Jing Xue <jingxue@digizenstudio.com>
- Date
- Nov 27, 2007, 17:33 UTC
- Message-ID
- <20071127123346.o2e0jb9hc4k40w8o@intranet.digizenstudio.com>
- In-Reply-To
- <fiet88$68n$1@ger.gmane.org>
Quoting Andy Parkins <andyparkins@gmail.com>:
> - "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