Add a new command `git_repository_open_ext` with extended options that control how searching for a repository will be done. The existing `git_repository_open` and `git_repository_discover` are reimplemented on top of it. We may want to change the default behavior of `git_repository_open` but this commit does not do that. Improve support for "gitdir" files where the work dir is separate from the repo and support for the "separate-git-dir" config. Also, add support for opening repos created with `git-new-workdir` script (although I have only confirmed that they can be opened, not that all functions work correctly). There are also a few minor changes that came up: - Fix `git_path_prettify` to allow in-place prettifying. - Fix `git_path_root` to support backslashes on Win32. This fix should help many repo open/discover scenarios - it is the one function called when opening before prettifying the path. - Tweak `git_config_get_string` to set the "out" pointer to NULL if the config value is not found. Allows some other cleanup. - Fix a couple places that should have been calling `git_repository_config__weakptr` and were not. - Fix `cl_git_sandbox_init` clar helper to support bare repos.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
attr.h | Loading commit data... | |
blob.h | Loading commit data... | |
branch.h | Loading commit data... | |
commit.h | Loading commit data... | |
common.h | Loading commit data... | |
config.h | Loading commit data... | |
diff.h | Loading commit data... | |
errors.h | Loading commit data... | |
index.h | Loading commit data... | |
indexer.h | Loading commit data... | |
inttypes.h | Loading commit data... | |
net.h | Loading commit data... | |
notes.h | Loading commit data... | |
object.h | Loading commit data... | |
odb.h | Loading commit data... | |
odb_backend.h | Loading commit data... | |
oid.h | Loading commit data... | |
reflog.h | Loading commit data... | |
refs.h | Loading commit data... | |
refspec.h | Loading commit data... | |
remote.h | Loading commit data... | |
repository.h | Loading commit data... | |
revwalk.h | Loading commit data... | |
signature.h | Loading commit data... | |
status.h | Loading commit data... | |
stdint.h | Loading commit data... | |
submodule.h | Loading commit data... | |
tag.h | Loading commit data... | |
threads.h | Loading commit data... | |
tree.h | Loading commit data... | |
types.h | Loading commit data... | |
version.h | Loading commit data... | |
windows.h | Loading commit data... |