MCPcopy Index your code
hub / github.com/git/git / save_user_format

Function save_user_format

pretty.c:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53static void save_user_format(struct rev_info *rev, const char *cp, int is_tformat)
54{
55 free(user_format);
56 user_format = xstrdup(cp);
57 if (is_tformat)
58 rev->use_terminator = 1;
59 rev->commit_format = CMIT_FMT_USERFORMAT;
60}
61
62static int git_pretty_formats_config(const char *var, const char *value,
63 const struct config_context *ctx UNUSED,

Callers 1

get_commit_formatFunction · 0.85

Calls 1

xstrdupFunction · 0.85

Tested by

no test coverage detected