path: root/list-objects.c
diff options
authorJeff King <>2015-06-01 09:56:37 (GMT)
committerJunio C Hamano <>2015-06-01 16:29:50 (GMT)
commitdaf7d86783b1bd2065881a3f0957f69c79a52fd7 (patch)
tree9b267ef958474b6bef66806bab3963cc4b7e6073 /list-objects.c
parent9cc2b07a7c95fad0bb5e3a7a8db29bebdb90d92b (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'list-objects.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/list-objects.c b/list-objects.c
index 2910bec..90c21ab 100644
--- a/list-objects.c
+++ b/list-objects.c
@@ -81,7 +81,7 @@ static void process_tree(struct rev_info *revs,
die("bad tree object");
if (obj->flags & (UNINTERESTING | SEEN))
- if (parse_tree(tree) < 0) {
+ if (parse_tree_gently(tree, revs->ignore_missing_links) < 0) {
if (revs->ignore_missing_links)
die("bad tree object %s", sha1_to_hex(obj->sha1));