libgit2/include/git2
Russell Belfer 7784bcbbee Refactor git_repository_open with new options
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.
2012-04-11 12:11:35 -07:00
..
attr.h attr: Change the attribute check macros 2012-03-02 03:51:45 +01:00
blob.h Update Copyright header 2012-02-13 17:11:09 +01:00
branch.h Typedefs don't have enum in front 2012-04-11 14:27:40 +02:00
commit.h commit: actually allow yet to be born update_ref 2012-02-15 13:07:41 +01:00
common.h Update Copyright header 2012-02-13 17:11:09 +01:00
config.h config: Refactor & add git_config_get_mapped 2012-03-01 00:52:21 +01:00
diff.h Fix crash in new status and add recurse option 2012-03-23 09:26:09 -07:00
errors.h error-handling: remote, transport 2012-04-11 19:16:10 +02:00
index.h Update Copyright header 2012-02-13 17:11:09 +01:00
indexer.h Update Copyright header 2012-02-13 17:11:09 +01:00
inttypes.h msvc: Properly handle inttypes.h/stdint.h 2011-10-05 16:21:16 -04:00
net.h Update Copyright header 2012-02-13 17:11:09 +01:00
notes.h Add git notes API 2012-02-15 20:32:14 +01:00
object.h Update Copyright header 2012-02-13 17:11:09 +01:00
odb_backend.h Update Copyright header 2012-02-13 17:11:09 +01:00
odb.h Update Copyright header 2012-02-13 17:11:09 +01:00
oid.h Update diff to use iterators 2012-03-02 15:49:29 -08:00
reflog.h Update Copyright header 2012-02-13 17:11:09 +01:00
refs.h Update Copyright header 2012-02-13 17:11:09 +01:00
refspec.h Update Copyright header 2012-02-13 17:11:09 +01:00
remote.h Add git_remote_list() 2012-02-26 19:15:36 +01:00
repository.h Refactor git_repository_open with new options 2012-04-11 12:11:35 -07:00
revwalk.h revwalk: add convenience function to push/hide HEAD 2012-02-27 22:26:37 +01:00
signature.h Update Copyright header 2012-02-13 17:11:09 +01:00
status.h Fix crash in new status and add recurse option 2012-03-23 09:26:09 -07:00
stdint.h msvc: Properly handle inttypes.h/stdint.h 2011-10-05 16:21:16 -04:00
submodule.h Improve config handling for diff,submodules,attrs 2012-03-30 14:40:50 -07:00
tag.h tag: Add git_tag_peel() which recursively peel a tag until a non tag git_object is met 2012-04-10 21:38:49 +02:00
threads.h Update Copyright header 2012-02-13 17:11:09 +01:00
tree.h Revert GIT_STATUS constants to avoid issues 2012-03-02 15:51:55 -08:00
types.h Add basic branch management API: git_branch_create(), git_branch_delete(), git_branch_list() 2012-04-10 21:39:03 +02:00
version.h Update Copyright header 2012-02-13 17:11:09 +01:00
windows.h Update Copyright header 2012-02-13 17:11:09 +01:00