summaryrefslogtreecommitdiff
path: root/builtin/am.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-04-20 21:09:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-04-21 04:04:20 (GMT)
commit8c2ca3a6d6d0bf51332f92d25b7902f9943aaaf2 (patch)
tree239417b4ea3d79c3fb2561a6c28d8f367bb6508c /builtin/am.c
parentd9c69644b27eb59fe16c1931580e6fce4abbdc65 (diff)
downloadgit-8c2ca3a6d6d0bf51332f92d25b7902f9943aaaf2.zip
git-8c2ca3a6d6d0bf51332f92d25b7902f9943aaaf2.tar.gz
git-8c2ca3a6d6d0bf51332f92d25b7902f9943aaaf2.tar.bz2
replace strbuf_addstr(git_path()) with git_path_buf()
Writing directly into the strbuf avoids a useless copy of the data, and dropping calls to git_path() makes it easier to audit for dangerous calls. Note that git_path() does an implicit strbuf_reset(), but in each of these cases we were either already doing that reset, or writing into a fresh strbuf anyway. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/am.c')
0 files changed, 0 insertions, 0 deletions