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
839c5f57
Commit
839c5f57
authored
Nov 26, 2012
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API updates for indexer.h
parent
a8122b5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
include/git2/indexer.h
+4
-4
src/indexer.c
+2
-2
No files found.
include/git2/indexer.h
View file @
839c5f57
...
...
@@ -44,14 +44,14 @@ GIT_EXTERN(int) git_indexer_stream_new(
git_indexer_stream
**
out
,
const
char
*
path
,
git_transfer_progress_callback
progress_cb
,
void
*
progress_c
allback
_payload
);
void
*
progress_c
b
_payload
);
/**
* Add data to the indexer
*
* @param idx the indexer
* @param data the data to add
* @param size the size of the data
* @param size the size of the data
in bytes
* @param stats stat storage
*/
GIT_EXTERN
(
int
)
git_indexer_stream_add
(
git_indexer_stream
*
idx
,
const
void
*
data
,
size_t
size
,
git_transfer_progress
*
stats
);
...
...
@@ -73,7 +73,7 @@ GIT_EXTERN(int) git_indexer_stream_finalize(git_indexer_stream *idx, git_transfe
*
* @param idx the indexer instance
*/
GIT_EXTERN
(
const
git_oid
*
)
git_indexer_stream_hash
(
git_indexer_stream
*
idx
);
GIT_EXTERN
(
const
git_oid
*
)
git_indexer_stream_hash
(
const
git_indexer_stream
*
idx
);
/**
* Free the indexer and its resources
...
...
@@ -120,7 +120,7 @@ GIT_EXTERN(int) git_indexer_write(git_indexer *idx);
*
* @param idx the indexer instance
*/
GIT_EXTERN
(
const
git_oid
*
)
git_indexer_hash
(
git_indexer
*
idx
);
GIT_EXTERN
(
const
git_oid
*
)
git_indexer_hash
(
const
git_indexer
*
idx
);
/**
* Free the indexer and its resources
...
...
src/indexer.c
View file @
839c5f57
...
...
@@ -56,12 +56,12 @@ struct delta_info {
git_off_t
delta_off
;
};
const
git_oid
*
git_indexer_hash
(
git_indexer
*
idx
)
const
git_oid
*
git_indexer_hash
(
const
git_indexer
*
idx
)
{
return
&
idx
->
hash
;
}
const
git_oid
*
git_indexer_stream_hash
(
git_indexer_stream
*
idx
)
const
git_oid
*
git_indexer_stream_hash
(
const
git_indexer_stream
*
idx
)
{
return
&
idx
->
hash
;
}
...
...
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