diff options
author | Josh Triplett <josh@joshtriplett.org> | 2016-04-03 16:01:01 -0700 |
---|---|---|
committer | Josh Triplett <josh@joshtriplett.org> | 2016-06-24 11:44:01 -0700 |
commit | 39c6fca33aa38ad26c7c5f36734c6434593daae1 (patch) | |
tree | b6782904f4276033c62dc1b2bb12035c51816153 /tests/diff/blob.c | |
parent | ed577134a5dcf30c95b740859aceebd9c1137157 (diff) | |
download | libgit2-39c6fca33aa38ad26c7c5f36734c6434593daae1.tar.gz |
Add GIT_REPOSITORY_OPEN_NO_DOTGIT flag to avoid appending /.git
GIT_REPOSITORY_OPEN_NO_SEARCH does not search up through parent
directories, but still tries the specified path both directly and with
/.git appended. GIT_REPOSITORY_OPEN_BARE avoids appending /.git, but
opens the repository in bare mode even if it has a working directory.
To support the semantics git uses when given $GIT_DIR in the
environment, provide a new GIT_REPOSITORY_OPEN_NO_DOTGIT flag to not try
appending /.git.
Diffstat (limited to 'tests/diff/blob.c')
0 files changed, 0 insertions, 0 deletions