diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2012-11-04 07:46:51 +0100 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2012-11-04 12:46:55 +0100 |
commit | b8c2c1fa35f240ea8eee719c0f5a657285864573 (patch) | |
tree | bdc22ab0485418b9ef905a580ef2543e92081d6d /Documentation/git-show.txt | |
parent | Merge branch 'rs/branch-del-symref' (diff) | |
download | git-b8c2c1fa35f240ea8eee719c0f5a657285864573.tar.xz git-b8c2c1fa35f240ea8eee719c0f5a657285864573.zip |
strbuf_split_buf(): use ALLOC_GROW()
Use ALLOC_GROW() rather than inline code to manage memory in
strbuf_split_buf(). Rename "pos" to "nr" because it better describes
the use of the variable and it better conforms to the "ALLOC_GROW"
idiom.
Also, instead of adding a sentinal NULL value after each entry is
added to the list, only add it once after all of the entries have been
added.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'Documentation/git-show.txt')
0 files changed, 0 insertions, 0 deletions