summaryrefslogtreecommitdiffstats
path: root/argv-array.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-06-10 23:36:52 +0200
committerJunio C Hamano <gitster@pobox.com>2014-06-12 19:29:41 +0200
commit3ffefb54c0515308ceafb6ba071567d9fd379498 (patch)
treebc4051d445ad039b8e1df96c08c7641d711de22c /argv-array.c
parentSync with 1.9.4 (diff)
downloadgit-3ffefb54c0515308ceafb6ba071567d9fd379498.tar.xz
git-3ffefb54c0515308ceafb6ba071567d9fd379498.zip
commit_tree: take a pointer/len pair rather than a const strbuf
While strbufs are pretty common throughout our code, it is more flexible for functions to take a pointer/len pair than a strbuf. It's easy to turn a strbuf into such a pair (by dereferencing its members), but less easy to go the other way (you can strbuf_attach, but that has implications about memory ownership). This patch teaches commit_tree (and its associated callers and sub-functions) to take such a pair for the commit message rather than a strbuf. This makes passing the buffer around slightly more verbose, but means we can get rid of some dangerous strbuf_attach calls in the next patch. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'argv-array.c')
0 files changed, 0 insertions, 0 deletions