create_bundle(): drop unused "header" parameter

There's no need to pass a header struct to create_bundle(); it writes
the header information directly to a descriptor (and does not report
back details to the caller).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff King
2019-01-24 08:11:51 -05:00
committed by Junio C Hamano
parent 74f8a9c954
commit fcb133e978
3 changed files with 5 additions and 6 deletions

View File

@ -424,8 +424,8 @@ static int write_bundle_refs(int bundle_fd, struct rev_info *revs)
return ref_count;
}
int create_bundle(struct repository *r, struct bundle_header *header,
const char *path, int argc, const char **argv)
int create_bundle(struct repository *r, const char *path,
int argc, const char **argv)
{
struct lock_file lock = LOCK_INIT;
int bundle_fd = -1;