git init: optionally allow a directory argument
commit53d48885931614a43e414e1272a7f126f8d0c901
authorNanako Shiraishi <nanako3@lavabit.com>
Fri, 24 Jul 2009 21:59:28 +0000 (25 06:59 +0900)
committerJunio C Hamano <gitster@pobox.com>
Sat, 25 Jul 2009 09:17:54 +0000 (25 02:17 -0700)
treeea3cc2803cac3034168ade392df83e71643daea4
parent0ad8ff2cd185e84fd49dd961370411e379681f10
git init: optionally allow a directory argument

When starting a new repository, I see my students often say

    % git init newrepo

and curse git.  They could say

    % mkdir newrepo; cd newrepo; git init

but allowing it as an obvious short-cut may be nicer.

Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-init.txt
builtin-init-db.c
t/t0001-init.sh