@matheusbsbs / matheus-bagliano / commits / f1ae391e17
Fork 0

Remove unused unpacklimit variable from builtin-fetch

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>

Shawn O. Pearce committed Sep 14, 2007 at 03:31 UTC f1ae391e17be638a14c7505598b73430dbf328f1
1 file changed -20
builtin-fetch.c
-20
@@ -12,9 +12,6 @@
12 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>...]";
13
14 static int append, force, tags, no_tags, update_head_ok, verbose, quiet;
15 -
16 -static int unpacklimit;
17 -
15 static char *default_rla = NULL;
16
17 static void find_merge_config(struct ref *ref_map, struct remote *remote)
@@ -395,21 +392,6 @@ static int do_fetch(struct transport *transport,
392 return 0;
393 }
394
398 -static int fetch_config(const char *var, const char *value)
399 -{
400 - if (strcmp(var, "fetch.unpacklimit") == 0) {
401 - unpacklimit = git_config_int(var, value);
402 - return 0;
403 - }
404 -
405 - if (strcmp(var, "transfer.unpacklimit") == 0) {
406 - unpacklimit = git_config_int(var, value);
407 - return 0;
408 - }
409 -
410 - return git_default_config(var, value);
411 -}
412 -
395 int cmd_fetch(int argc, const char **argv, const char *prefix)
396 {
397 struct remote *remote;
@@ -421,8 +403,6 @@ int cmd_fetch(int argc, const char **argv, const char *prefix)
403 const char *depth = NULL, *upload_pack = NULL;
404 int keep = 0;
405
424 - git_config(fetch_config);
425 -
406 for (i = 1; i < argc; i++) {
407 const char *arg = argv[i];
408 cmd_len += strlen(arg);