Merge branch 'rs/cocci'
Code clean-up with help from coccinelle tool continues. * rs/cocci: coccicheck: make transformation for strbuf_addf(sb, "...") more precise use strbuf_add_unique_abbrev() for adding short hashes, part 2 use strbuf_addstr() instead of strbuf_addf() with "%s", part 2 gitignore: ignore output files of coccicheck make target
This commit is contained in:
2
diff.c
2
diff.c
@ -3109,7 +3109,7 @@ static void fill_metainfo(struct strbuf *msg,
|
||||
}
|
||||
strbuf_addf(msg, "%s%sindex %s..", line_prefix, set,
|
||||
find_unique_abbrev(one->oid.hash, abbrev));
|
||||
strbuf_addstr(msg, find_unique_abbrev(two->oid.hash, abbrev));
|
||||
strbuf_add_unique_abbrev(msg, two->oid.hash, abbrev);
|
||||
if (one->mode == two->mode)
|
||||
strbuf_addf(msg, " %06o", one->mode);
|
||||
strbuf_addf(msg, "%s\n", reset);
|
||||
|
Reference in New Issue
Block a user