summaryrefslogtreecommitdiff
path: root/http-fetch.c
diff options
context:
space:
mode:
authorBen Walton <bwalton@artsci.utoronto.ca>2011-08-24 00:29:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-08-24 04:36:20 (GMT)
commita6c786fce8da4143ea8bb3ab41ce8531192c5126 (patch)
tree36b8f31a3bf7c2ed5ccc44b3e18ae1398b1fc2da /http-fetch.c
parent3d3d282146e13f2d7f055ad056956fd8e5d7ed29 (diff)
downloadgit-a6c786fce8da4143ea8bb3ab41ce8531192c5126.zip
git-a6c786fce8da4143ea8bb3ab41ce8531192c5126.tar.gz
git-a6c786fce8da4143ea8bb3ab41ce8531192c5126.tar.bz2
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>
Diffstat (limited to 'http-fetch.c')
-rw-r--r--http-fetch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/http-fetch.c b/http-fetch.c
index 3af4c71b..8c4c5d2 100644
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -56,6 +56,10 @@ int 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);