summaryrefslogtreecommitdiff
path: root/revision.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-06-01 09:56:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-06-01 16:29:50 (GMT)
commitdaf7d86783b1bd2065881a3f0957f69c79a52fd7 (patch)
tree9b267ef958474b6bef66806bab3963cc4b7e6073 /revision.c
parent9cc2b07a7c95fad0bb5e3a7a8db29bebdb90d92b (diff)
downloadgit-daf7d86783b1bd2065881a3f0957f69c79a52fd7.zip
git-daf7d86783b1bd2065881a3f0957f69c79a52fd7.tar.gz
git-daf7d86783b1bd2065881a3f0957f69c79a52fd7.tar.bz2
silence broken link warnings with revs->ignore_missing_links
We set revs->ignore_missing_links to instruct the revision-walking machinery that we know the history graph may be incomplete. For example, we use it when walking unreachable but recent objects; we want to add what we can, but it's OK if the history is incomplete. However, we still print error messages for the missing objects, which can be confusing. This is not an error, but just a normal situation when transitioning from a repository last pruned by an older git (which can leave broken segments of history) to a more recent one (where we try to preserve whole reachable segments). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/revision.c b/revision.c
index 75dda92..983e4c4 100644
--- a/revision.c
+++ b/revision.c
@@ -834,7 +834,7 @@ static int add_parents_to_list(struct rev_info *revs, struct commit *commit,
for (parent = commit->parents; parent; parent = parent->next) {
struct commit *p = parent->item;
- if (parse_commit(p) < 0)
+ if (parse_commit_gently(p, revs->ignore_missing_links) < 0)
return -1;
if (revs->show_source && !p->util)
p->util = commit->util;