Re: [PATCH/RFC] "init-db" can really be just "init"
- From
Junio C Hamano <junkio@cox.net>
- Date
- Nov 27, 2006, 22:05 UTC
- Message-ID
- <7vmz6cfsuw.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0611271622260.9647@xanadu.home>
Nicolas Pitre <nico@cam.org> writes:
> This should make first GIT impression a little less intimidating. > > Signed-off-by: Nicolas Pitre <nico@cam.org>
I was not sure about this for quite some time, thinking that it might make sense to default the behaviour of init-db for bare repositories and give init as a user-level wrapper to drive init-db to add customization suitable for repositories with working trees. List?
> Maybe that could be a good rule of thumb to have all porcelainish > commands not have any hyphen in their name, like "diff", "commit", > "add", etc. ?
I was also hoping that would become the case except verify-tag, cherry-pick, and format-patch. Also I was wondering if it would make sense to give two dashes to the back-end ones that never get invoked by the end users directly (e.g. merge--recursive, upload--pack) but thought it was too ugly.