Skip to content

Commit 0834257

Browse files
avargitster
authored andcommitted
bundle API: start writing API documentation
There are no other API docs in bundle.h, but this is at least a start. We'll add a parameter to this function in a subsequent commit, but let's start by documenting it. The "/**" comment (as opposed to "/*") signifies the start of API documentation. See [1] and bdfdaa4 (strbuf.h: integrate api-strbuf.txt documentation, 2015-01-16) and 6afbbdd (strbuf.h: unify documentation comments beginnings, 2015-01-16) for a discussion of that convention. 1. https://lore.kernel.org/git/[email protected]/ Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c420321 commit 0834257

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bundle.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ int create_bundle(struct repository *r, const char *path,
2727
int version);
2828
int verify_bundle(struct repository *r, struct bundle_header *header, int verbose);
2929
#define BUNDLE_VERBOSE 1
30+
31+
/**
32+
* Unbundle after reading the header with read_bundle_header().
33+
*
34+
* We'll invoke "git index-pack --stdin --fix-thin" for you on the
35+
* provided `bundle_fd` from read_bundle_header().
36+
*/
3037
int unbundle(struct repository *r, struct bundle_header *header,
3138
int bundle_fd, int flags);
3239
int list_bundle_refs(struct bundle_header *header,

0 commit comments

Comments
 (0)