On Tue, Mar 26, 2013 at 04:48:44PM +0700, Nguyen Thai Ngoc Duy wrote:
> Something like this, maybe?
> -- 8< --
> Subject: [PATCH] git.txt: document the implicit working tree setting with
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclo...@gmail.com>
> Documentation/git.txt | 2 ++
> 1 file changed, 2 insertions(+)
> diff --git a/Documentation/git.txt b/Documentation/git.txt
> index 7efaa59..ce55abf 100644
> --- a/Documentation/git.txt
> +++ b/Documentation/git.txt
> @@ -671,6 +671,8 @@ Git so take care if using Cogito etc.
> specifies a path to use instead of the default `.git`
> for the base of the repository.
> The '--git-dir' command-line option also sets this value.
> + If neither GIT_WORK_TREE nor '--work-tree' is set, the
> + current directory will become the working tree.
I think this is a good thing to mention, but a few nits:
1. core.worktree is another way of setting it
2. This can also be overridden by --bare (at least in "next").
3. I think having core.bare set will also override this
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html