]> git.ipfire.org Git - thirdparty/git.git/blobdiff - pretty.c
pretty: add support for "valueonly" option in %(trailers)
[thirdparty/git.git] / pretty.c
index 5bf05cde56a649c26c87c98416016b234327580d..fe73916adc88880dd75d2323fb36fca8fa52d4f3 100644 (file)
--- a/pretty.c
+++ b/pretty.c
@@ -1391,7 +1391,8 @@ static size_t format_commit_one(struct strbuf *sb, /* in UTF-8 */
                                        opts.filter_data = &filter_list;
                                        opts.only_trailers = 1;
                                } else if (!match_placeholder_bool_arg(arg, "only", &arg, &opts.only_trailers) &&
-                                          !match_placeholder_bool_arg(arg, "unfold", &arg, &opts.unfold))
+                                          !match_placeholder_bool_arg(arg, "unfold", &arg, &opts.unfold) &&
+                                          !match_placeholder_bool_arg(arg, "valueonly", &arg, &opts.value_only))
                                        break;
                        }
                }