MCPcopy Create free account
hub / github.com/git/git / copy_reflog_msg

Function copy_reflog_msg

refs.c:1031–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029}
1030
1031static void copy_reflog_msg(struct strbuf *sb, const char *msg)
1032{
1033 char c;
1034 int wasspace = 1;
1035
1036 while ((c = *msg++)) {
1037 if (wasspace && isspace(c))
1038 continue;
1039 wasspace = isspace(c);
1040 if (wasspace)
1041 c = ' ';
1042 strbuf_addch(sb, c);
1043 }
1044 strbuf_rtrim(sb);
1045}
1046
1047static char *normalize_reflog_message(const char *msg)
1048{

Callers 1

normalize_reflog_messageFunction · 0.85

Calls 2

strbuf_addchFunction · 0.85
strbuf_rtrimFunction · 0.85

Tested by

no test coverage detected