summaryrefslogtreecommitdiff
path: root/Documentation/git-parse-remote.txt
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2010-11-06 12:01:28 -0500
committerLibravatar Jonathan Nieder <jrnieder@gmail.com>2011-02-26 04:57:58 -0600
commitdeadcef4c15d54d0a397180a1783ae8939254188 (patch)
tree8ddfbec817047c0cdb91fd714b286390224abf66 /Documentation/git-parse-remote.txt
parentvcs-svn: eliminate global byte_buffer (diff)
downloadtgif-deadcef4c15d54d0a397180a1783ae8939254188.tar.xz
vcs-svn: replace buffer_read_string memory pool with a strbuf
obj_pool is inherently global and does not use the standard growing factor alloc_nr, which makes it feel out of place in the git codebase. Plus it is overkill for this application: all that is needed is a buffer that can grow between requests to accomodate larger strings. Use a strbuf instead. As a side effect, this improves the error handling: allocation failures will result in a clean exit instead of segfaults. It would be nice to add a test case (using ulimit or failmalloc) but that can wait for another day. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 'Documentation/git-parse-remote.txt')
0 files changed, 0 insertions, 0 deletions