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
946dab73
Commit
946dab73
authored
Aug 12, 2011
by
Carlos Martín Nieto
Committed by
Vicent Marti
Aug 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement and bind local_send_wants
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
parent
22f65b9e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
src/transport_local.c
+12
-3
No files found.
src/transport_local.c
View file @
946dab73
...
...
@@ -12,6 +12,7 @@ typedef struct {
git_transport
parent
;
git_repository
*
repo
;
git_vector
*
refs
;
git_headarray
wants_list
;
}
transport_local
;
/*
...
...
@@ -165,10 +166,17 @@ static int local_ls(git_transport *transport, git_headarray *array)
return
error
;
}
static
int
local_send_wants
(
git_transport
*
GIT_UNUSED
(
transport
),
git_headarray
*
GIT_UNUSED
(
array
)
)
static
int
local_send_wants
(
git_transport
*
transport
,
git_headarray
*
array
)
{
GIT_UNUSED_ARG
(
tranport
);
GIT_UNUSED_ARG
(
array
);
transport_local
*
t
=
(
transport_local
*
)
transport
;
git_headarray
*
wants
=
&
t
->
wants_list
;
/*
* We need to store the list of wanted references so we can figure
* out what to transmit later.
*/
wants
->
len
=
array
->
len
;
wants
->
heads
=
array
->
heads
;
/* We're local anyway, so we don't need this */
return
GIT_SUCCESS
;
...
...
@@ -215,6 +223,7 @@ int git_transport_local(git_transport **out)
t
->
parent
.
connect
=
local_connect
;
t
->
parent
.
ls
=
local_ls
;
t
->
parent
.
send_wants
=
local_send_wants
;
t
->
parent
.
close
=
local_close
;
t
->
parent
.
free
=
local_free
;
...
...
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