diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-06-11 09:29:58 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-11 09:29:59 -0700 |
commit | 43262d8d6511212f49d519779505f8a557c8dc84 (patch) | |
tree | 3a68ca86e32cb14060f97ba4e603affc263ecbdf /revision.c | |
parent | 0e04b248b5d5828b907a346e920dda4003311406 (diff) | |
parent | ce4e7b2ac38cfe5e4c165411d2e37b22e445ab88 (diff) | |
download | git-43262d8d6511212f49d519779505f8a557c8dc84.tar.gz git-43262d8d6511212f49d519779505f8a557c8dc84.tar.xz |
Merge branch 'jk/squelch-missing-link-warning-for-unreachable'
Recent "git prune" traverses young unreachable objects to safekeep
old objects in the reachability chain from them, which sometimes
caused error messages that are unnecessarily alarming.
* jk/squelch-missing-link-warning-for-unreachable:
suppress errors on missing UNINTERESTING links
silence broken link warnings with revs->ignore_missing_links
add quieter versions of parse_{tree,commit}
Diffstat (limited to 'revision.c')
-rw-r--r-- | revision.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/revision.c b/revision.c index 1d903cf31..3ff8723da 100644 --- a/revision.c +++ b/revision.c @@ -817,7 +817,7 @@ static int add_parents_to_list(struct rev_info *revs, struct commit *commit, parent = parent->next; if (p) p->object.flags |= UNINTERESTING; - if (parse_commit(p) < 0) + if (parse_commit_gently(p, 1) < 0) continue; if (p->parents) mark_parents_uninteresting(p); @@ -844,7 +844,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; |