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
fd10b110
Commit
fd10b110
authored
Nov 20, 2014
by
Vicent Marti
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2717 from libgit2/cmn/remote-ls
Clarify the git_remote_ls() documentation
parents
21361cb7
8fd7dd77
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
include/git2/remote.h
+12
-8
src/remote.c
+1
-1
No files found.
include/git2/remote.h
View file @
fd10b110
...
...
@@ -281,14 +281,19 @@ GIT_EXTERN(const git_refspec *)git_remote_get_refspec(const git_remote *remote,
GIT_EXTERN
(
int
)
git_remote_connect
(
git_remote
*
remote
,
git_direction
direction
);
/**
* Get
a list of refs at the remote
* Get
the remote repository's reference advertisement list
*
*
The remote (or more exactly its transport) must be connected. The
*
memory belongs to the remote
.
*
Get the list of references with which the server responds to a new
*
connection
.
*
* The array will stay valid as long as the remote object exists and
* its transport isn't changed, but a copy is recommended for usage of
* the data.
* The remote (or more exactly its transport) must have connected to
* the remote repository. This list is available as soon as the
* connection to the remote is initiated and it remains available
* after disconnecting.
*
* The memory belongs to the remote. The pointer will be valid as long
* as a new connection is not initiated, but it is recommended that
* you make a copy in order to make use of the data.
*
* @param out pointer to the array
* @param size the number of remote heads
...
...
@@ -338,8 +343,7 @@ GIT_EXTERN(void) git_remote_stop(git_remote *remote);
/**
* Disconnect from the remote
*
* Close the connection to the remote and free the underlying
* transport.
* Close the connection to the remote.
*
* @param remote the remote to disconnect from
*/
...
...
src/remote.c
View file @
fd10b110
...
...
@@ -706,7 +706,7 @@ int git_remote_ls(const git_remote_head ***out, size_t *size, git_remote *remote
assert
(
remote
);
if
(
!
remote
->
transport
)
{
giterr_set
(
GITERR_NET
,
"
No transport bound to this remote
"
);
giterr_set
(
GITERR_NET
,
"
this remote has never connected
"
);
return
-
1
;
}
...
...
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