Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 2/3] vcs_info/cvs: set vcs_comm[basedir] in VCS_INFO_detect_cvs
On Mon, Nov 25, 2019 at 2:17 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> Two, as I pointed out in reply to an offlist response, the existence of
> $GIT_DIR and $GIT_WORK_TREE means that the two VCS's basedirs need not
> be in a parent dir – subdir relationship with each other; they can be
> /foo/bar and /foo/baz.
How is it possible?
in a git repository
$ GIT_WORK_TREE=../other-dir git rev-parse --is-inside-work-tree
false
Work tree root should be a parent of cwd, otherwise `rev-parse
--is-inside-work-tree` returns false -> git repository not detected.
And there is only one path from cwd to the root -> all parents of cwd
are parents or subdirs to each other.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author