Merge branch 'rs/strbuf-insertstr'

Code clean-up.

* rs/strbuf-insertstr:
  mailinfo: don't insert header prefix for handle_content_type()
  strbuf: add and use strbuf_insertstr()
This commit is contained in:
Junio C Hamano
2020-02-17 13:22:17 -08:00
11 changed files with 26 additions and 15 deletions

View File

@ -398,7 +398,7 @@ static void strbuf_to_cone_pattern(struct strbuf *line, struct pattern_list *pl)
return;
if (line->buf[0] != '/')
strbuf_insert(line, 0, "/", 1);
strbuf_insertstr(line, 0, "/");
insert_recursive_pattern(pl, line);
}