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
3f8086e0
Commit
3f8086e0
authored
Jul 15, 2013
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1729 from tiennou/remote-owner
Add `git_remote_owner`.
parents
35173312
85e1eded
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
include/git2/remote.h
+8
-0
src/remote.c
+6
-0
No files found.
include/git2/remote.h
View file @
3f8086e0
...
...
@@ -96,6 +96,14 @@ GIT_EXTERN(int) git_remote_load(git_remote **out, git_repository *repo, const ch
GIT_EXTERN
(
int
)
git_remote_save
(
const
git_remote
*
remote
);
/**
* Get the remote's repository
*
* @param remote the remote
* @return a pointer to the repository
*/
GIT_EXTERN
(
git_repository
*
)
git_remote_owner
(
const
git_remote
*
remote
);
/**
* Get the remote's name
*
* @param remote the remote
...
...
src/remote.c
View file @
3f8086e0
...
...
@@ -467,6 +467,12 @@ const char *git_remote_name(const git_remote *remote)
return
remote
->
name
;
}
git_repository
*
git_remote_owner
(
const
git_remote
*
remote
)
{
assert
(
remote
);
return
remote
->
repo
;
}
const
char
*
git_remote_url
(
const
git_remote
*
remote
)
{
assert
(
remote
);
...
...
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