summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 133296f)
raw | patch | inline | side by side (parent: 133296f)
author | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 14 Sep 2007 07:31:13 +0000 (03:31 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 19 Sep 2007 10:22:30 +0000 (03:22 -0700) |
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>
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>
builtin-fetch.c | patch | blob | history |
diff --git a/builtin-fetch.c b/builtin-fetch.c
index 33b740cd105d03fca9d63b5a68c2ebec3977114f..a041df9faf7e612bf84e588834446c0cfaf67620 100644 (file)
--- a/builtin-fetch.c
+++ b/builtin-fetch.c
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)
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;
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);