Skip to content

Commit

Permalink
Remove unused unpacklimit variable from builtin-fetch
Browse files Browse the repository at this point in the history
Never referenced.  This should actually be handled down inside
of builtin-fetch-pack, not up here in the generic user frontend.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Shawn O. Pearce authored and Junio C Hamano committed Sep 19, 2007
1 parent 133296f commit f1ae391
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions builtin-fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
static const char fetch_usage[] = "git-fetch [-a | --append] [--upload-pack <upload-pack>] [-f | --force] [--no-tags] [-t | --tags] [-k | --keep] [-u | --update-head-ok] [--depth <depth>] [-v | --verbose] [<repository> <refspec>...]";

static int append, force, tags, no_tags, update_head_ok, verbose, quiet;

static int unpacklimit;

static char *default_rla = NULL;

static void find_merge_config(struct ref *ref_map, struct remote *remote)
Expand Down Expand Up @@ -395,21 +392,6 @@ static int do_fetch(struct transport *transport,
return 0;
}

static int fetch_config(const char *var, const char *value)
{
if (strcmp(var, "fetch.unpacklimit") == 0) {
unpacklimit = git_config_int(var, value);
return 0;
}

if (strcmp(var, "transfer.unpacklimit") == 0) {
unpacklimit = git_config_int(var, value);
return 0;
}

return git_default_config(var, value);
}

int cmd_fetch(int argc, const char **argv, const char *prefix)
{
struct remote *remote;
Expand All @@ -421,8 +403,6 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
const char *depth = NULL, *upload_pack = NULL;
int keep = 0;

git_config(fetch_config);

for (i = 1; i < argc; i++) {
const char *arg = argv[i];
cmd_len += strlen(arg);
Expand Down

0 comments on commit f1ae391

Please sign in to comment.