Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
a5886e9e
Commit
a5886e9e
authored
Mar 07, 2020
by
Josh Bleecher Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repository: improve commondir docs
Fixes #5428
parent
e23b8b44
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
include/git2/repository.h
+4
-3
No files found.
include/git2/repository.h
View file @
a5886e9e
...
@@ -481,10 +481,11 @@ GIT_EXTERN(const char *) git_repository_path(const git_repository *repo);
...
@@ -481,10 +481,11 @@ GIT_EXTERN(const char *) git_repository_path(const git_repository *repo);
GIT_EXTERN
(
const
char
*
)
git_repository_workdir
(
const
git_repository
*
repo
);
GIT_EXTERN
(
const
char
*
)
git_repository_workdir
(
const
git_repository
*
repo
);
/**
/**
* Get the path of the shared common directory for this repository
* Get the path of the shared common directory for this repository
.
*
*
* If the repository is bare is not a worktree, the git directory
* If the repository is bare, it is the root directory for the repository.
* path is returned.
* If the repository is a worktree, it is the parent repo's gitdir.
* Otherwise, it is the gitdir.
*
*
* @param repo A repository object
* @param repo A repository object
* @return the path to the common dir
* @return the path to the common dir
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment