diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-09-25 10:37:10 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-09-25 10:37:10 -0700 |
| commit | c639478d794c4d3065d1ef6e98b87c7e74a6823b (patch) | |
| tree | d6871b7e4741421dea8184611f2ccd406712dac3 /refs.c | |
| parent | The 20th batch (diff) | |
| parent | apply: refactor `struct image` to use a `struct strbuf` (diff) | |
| download | git-c639478d794c4d3065d1ef6e98b87c7e74a6823b.tar.gz git-c639478d794c4d3065d1ef6e98b87c7e74a6823b.zip | |
Merge branch 'ps/apply-leakfix'
"git apply" had custom buffer management code that predated before
use of strbuf got widespread, which has been updated to use strbuf,
which also plugged some memory leaks.
* ps/apply-leakfix:
apply: refactor `struct image` to use a `struct strbuf`
apply: rename members that track line count and allocation length
apply: refactor code to drop `line_allocated`
apply: introduce macro and function to init images
apply: rename functions operating on `struct image`
apply: reorder functions to move image-related things together
Diffstat (limited to 'refs.c')
0 files changed, 0 insertions, 0 deletions
