Mark http-fetch without -a as deprecated

As the use of http-fetch without -a can create an object store that is invalid to the point where it cannot even be fsck'd, mark it as deprecated. A future release should change the default and then remove the option entirely. Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ben Walton committed Aug 23, 2011 at 20:29 UTC a6c786fce8da4143ea8bb3ab41ce8531192c5126
2 files changed +7
Documentation/git-http-fetch.txt
+3
@@ -15,6 +15,9 @@ DESCRIPTION
15 -----------
16 Downloads a remote git repository via HTTP.
17
18 +*NOTE*: use of this command without -a is deprecated. The -a
19 +behaviour will become the default in a future release.
20 +
21 OPTIONS
22 -------
23 commit-id::
http-fetch.c
+4
@@ -56,6 +56,10 @@ int main(int argc, const char **argv)
56 commits = 1;
57 }
58
59 + if (get_all == 0)
60 + warning("http-fetch: use without -a is deprecated.\n"
61 + "In a future release, -a will become the default.");
62 +
63 if (argv[arg])
64 str_end_url_with_slash(argv[arg], &url);
65