summaryrefslogtreecommitdiff
path: root/bundle.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2019-01-24 13:11:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-24 20:35:44 (GMT)
commitfcb133e978e98cf92de3ec7dedd4969802191b13 (patch)
tree9644a6407728ca2faf3a9e32ce03dff56ad03f03 /bundle.c
parent74f8a9c9543aeb19d9af145d8be4acc2198c5b7e (diff)
downloadgit-fcb133e978e98cf92de3ec7dedd4969802191b13.zip
git-fcb133e978e98cf92de3ec7dedd4969802191b13.tar.gz
git-fcb133e978e98cf92de3ec7dedd4969802191b13.tar.bz2
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>
Diffstat (limited to 'bundle.c')
-rw-r--r--bundle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundle.c b/bundle.c
index 37b1daa..b45666c 100644
--- a/bundle.c
+++ b/bundle.c
@@ -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;