Option flags for git_repository_open_ext
.
st_dev
changes from the stat
system call). (E.g. Searching in a user's home
directory "/home/user/source/" will not return "/.git/" as the found
repo if "/" is a different filesystem than "/home".)git_repository_open_bare
, this can follow gitlinks.git_repository_open_ext
will ignore the other
flags and the ceiling_dirs
argument, and will allow a NULL path
to use GIT_DIR
or search from the current directory. The search
for a repository will respect $GIT_CEILING_DIRECTORIES and
$GIT_DISCOVERY_ACROSS_FILESYSTEM. The opened repository will
respect $GIT_INDEX_FILE, $GIT_NAMESPACE, $GIT_OBJECT_DIRECTORY, and
$GIT_ALTERNATE_OBJECT_DIRECTORIES. In the future, this flag will
also cause git_repository_open_ext
to respect $GIT_WORK_TREE and
$GIT_COMMON_DIR; currently, git_repository_open_ext
with this
flag will error out if either $GIT_WORK_TREE or $GIT_COMMON_DIR is
set.