diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-05-08 15:59:35 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-08 15:59:35 +0900 |
commit | 96f29521a3908eb80b9552f11f2b75ca34475686 (patch) | |
tree | 191eb44839fcb0f417d87da2cb7ca92ce63c936d /http-fetch.c | |
parent | 71c848bb28a2fcef918178f286f7e43d9804588d (diff) | |
parent | 0b6b34295413410e4ca52df4671d2a217e56a57b (diff) | |
download | git-96f29521a3908eb80b9552f11f2b75ca34475686.tar.gz |
Merge branch 'ma/http-walker-no-partial'
"git http-fetch" (deprecated) had an optional and experimental
"feature" to fetch only commits and/or trees, which nobody used.
This has been removed.
* ma/http-walker-no-partial:
walker: drop fields of `struct walker` which are always 1
http-fetch: make `-a` standard behaviour
Diffstat (limited to 'http-fetch.c')
-rw-r--r-- | http-fetch.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/http-fetch.c b/http-fetch.c index 885e471501..a32ac118d9 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -17,21 +17,13 @@ int cmd_main(int argc, const char **argv) char *url = NULL; int arg = 1; int rc = 0; - int get_tree = 0; - int get_history = 0; - int get_all = 0; int get_verbosely = 0; int get_recover = 0; while (arg < argc && argv[arg][0] == '-') { if (argv[arg][1] == 't') { - get_tree = 1; } else if (argv[arg][1] == 'c') { - get_history = 1; } else if (argv[arg][1] == 'a') { - get_all = 1; - get_tree = 1; - get_history = 1; } else if (argv[arg][1] == 'v') { get_verbosely = 1; } else if (argv[arg][1] == 'w') { @@ -55,10 +47,6 @@ int cmd_main(int argc, const char **argv) commits = 1; } - if (get_all == 0) - warning("http-fetch: use without -a is deprecated.\n" - "In a future release, -a will become the default."); - if (argv[arg]) str_end_url_with_slash(argv[arg], &url); @@ -68,9 +56,6 @@ int cmd_main(int argc, const char **argv) http_init(NULL, url, 0); walker = get_http_walker(url); - walker->get_tree = get_tree; - walker->get_history = get_history; - walker->get_all = get_all; walker->get_verbosely = get_verbosely; walker->get_recover = get_recover; |