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 /commit.h | |
parent | 0e04b248b5d5828b907a346e920dda4003311406 (diff) | |
parent | ce4e7b2ac38cfe5e4c165411d2e37b22e445ab88 (diff) | |
download | git-43262d8d6511212f49d519779505f8a557c8dc84.tar.gz |
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 'commit.h')
-rw-r--r-- | commit.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); /* |