From 820eca68c2577d7499d203d7f4f7ae479b577683 Mon Sep 17 00:00:00 2001 From: Daniel Barkalow Date: Mon, 26 Sep 2005 21:38:08 -0400 Subject: [PATCH] Implement --recover for git-*-fetch With the --recover option, we verify that we have absolutely everything reachable from the target, not assuming that things reachable from refs will be complete. Signed-off-by: Daniel Barkalow Signed-off-by: Junio C Hamano --- fetch.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'fetch.c') diff --git a/fetch.c b/fetch.c index 1a33ae984f..3e073d3584 100644 --- a/fetch.c +++ b/fetch.c @@ -15,6 +15,7 @@ int get_tree = 0; int get_history = 0; int get_all = 0; int get_verbosely = 0; +int get_recover = 0; static unsigned char current_commit_sha1[20]; void pull_say(const char *fmt, const char *hex) @@ -214,7 +215,9 @@ int pull(char *target) return -1; } - for_each_ref(mark_complete); + if (!get_recover) { + for_each_ref(mark_complete); + } if (interpret_target(target, sha1)) return error("Could not interpret %s as something to pull", -- cgit v1.2.3