summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2015-06-25 11:02:09 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-06-25 11:02:10 -0700
commitc53312583b2d25b6ed5f0aa421993795743d1da6 (patch)
tree6c93284d0591ed5b210139fcfff040689f8199fa /commit.h
parentMerge branch 'mm/rebase-i-post-rewrite-exec' into maint (diff)
parentsuppress errors on missing UNINTERESTING links (diff)
downloadtgif-c53312583b2d25b6ed5f0aa421993795743d1da6.tar.xz
Merge branch 'jk/squelch-missing-link-warning-for-unreachable' into maint
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 'commit.h')
-rw-r--r--commit.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/commit.h b/commit.h
index 9f189cb054..4789839bd0 100644
--- a/commit.h
+++ b/commit.h
@@ -59,7 +59,11 @@ struct commit *lookup_commit_reference_by_name(const char *name);
struct commit *lookup_commit_or_die(const unsigned char *sha1, const char *ref_name);
int parse_commit_buffer(struct commit *item, const void *buffer, unsigned long size);
-int parse_commit(struct commit *item);
+int parse_commit_gently(struct commit *item, int quiet_on_missing);
+static inline int parse_commit(struct commit *item)
+{
+ return parse_commit_gently(item, 0);
+}
void parse_commit_or_die(struct commit *item);
/*