diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-02-01 00:14:58 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-01 00:14:58 +0300 |
commit | 237bdd9ddbe52eb651787af1929d8832ce37c322 (patch) | |
tree | b01cda85ff37584fe07b2f32065b88e2d5dbe159 /ref-filter.h | |
parent | d515fe08fc188ed5a23537a8218a32caf716ff49 (diff) | |
parent | 4fea72f4f76addb6b49ca4f5b97f66a6bda46985 (diff) |
Merge branch 'st/verify-tag'
"git tag" and "git verify-tag" learned to put GPG verification
status in their "--format=<placeholders>" output format.
* st/verify-tag:
t/t7004-tag: Add --format specifier tests
t/t7030-verify-tag: Add --format specifier tests
builtin/tag: add --format argument for tag -v
builtin/verify-tag: add --format to verify-tag
ref-filter: add function to print single ref_array_item
gpg-interface, tag: add GPG_VERIFY_OMIT_STATUS flag
Diffstat (limited to 'ref-filter.h')
-rw-r--r-- | ref-filter.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ref-filter.h b/ref-filter.h index fc55fa3574..7b05592baf 100644 --- a/ref-filter.h +++ b/ref-filter.h @@ -109,4 +109,11 @@ struct ref_sorting *ref_default_sorting(void); /* Function to parse --merged and --no-merged options */ int parse_opt_merge_filter(const struct option *opt, const char *arg, int unset); +/* + * Print a single ref, outside of any ref-filter. Note that the + * name must be a fully qualified refname. + */ +void pretty_print_ref(const char *name, const unsigned char *sha1, + const char *format); + #endif /* REF_FILTER_H */ |