X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=pretty.h;fp=pretty.h;h=c81cf40d387b95592b7ce9f895d70c75e687f34d;hb=3c7e2e8f0acfe94220cdd3bbd3a35a955ae80294;hp=f034609e4db6e68efb24a149c580fc7bda3c4cfa;hpb=670b81a890388c60b7032a4f5b879f2ece8c4558;p=thirdparty%2Fgit.git diff --git a/pretty.h b/pretty.h index f034609e4d..c81cf40d38 100644 --- a/pretty.h +++ b/pretty.h @@ -65,12 +65,15 @@ static inline int cmit_fmt_is_mail(enum cmit_fmt fmt) return (fmt == CMIT_FMT_EMAIL || fmt == CMIT_FMT_MBOXRD); } +/* + * Examine the user-specified format given by "fmt" (or if NULL, the global one + * previously saved by get_commit_format()), and set flags based on which items + * the format will need when it is expanded. + */ struct userformat_want { unsigned notes:1; unsigned source:1; }; - -/* Set the flag "w->notes" if there is placeholder %N in "fmt". */ void userformat_find_requirements(const char *fmt, struct userformat_want *w); /*