| 118 | } |
| 119 | |
| 120 | static void setup_commit_formats(void) |
| 121 | { |
| 122 | struct cmt_fmt_map builtin_formats[] = { |
| 123 | { "raw", CMIT_FMT_RAW, 0, 0 }, |
| 124 | { "medium", CMIT_FMT_MEDIUM, 0, 8 }, |
| 125 | { "short", CMIT_FMT_SHORT, 0, 0 }, |
| 126 | { "email", CMIT_FMT_EMAIL, 0, 0 }, |
| 127 | { "mboxrd", CMIT_FMT_MBOXRD, 0, 0 }, |
| 128 | { "fuller", CMIT_FMT_FULLER, 0, 8 }, |
| 129 | { "full", CMIT_FMT_FULL, 0, 8 }, |
| 130 | { "oneline", CMIT_FMT_ONELINE, 1, 0 }, |
| 131 | { "reference", CMIT_FMT_USERFORMAT, 1, 0, |
| 132 | 0, DATE_SHORT, "%C(auto)%h (%s, %ad)" }, |
| 133 | /* |
| 134 | * Please update $__git_log_pretty_formats in |
| 135 | * git-completion.bash when you add new formats. |
| 136 | */ |
| 137 | }; |
| 138 | commit_formats_len = ARRAY_SIZE(builtin_formats); |
| 139 | builtin_formats_len = commit_formats_len; |
| 140 | ALLOC_GROW(commit_formats, commit_formats_len, commit_formats_alloc); |
| 141 | COPY_ARRAY(commit_formats, builtin_formats, |
| 142 | ARRAY_SIZE(builtin_formats)); |
| 143 | |
| 144 | repo_config(the_repository, git_pretty_formats_config, NULL); |
| 145 | } |
| 146 | |
| 147 | static struct cmt_fmt_map *find_commit_format_recursive(const char *sought, |
| 148 | const char *original, |
no test coverage detected