diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-01-30 13:12:25 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-02-05 00:38:41 -0800 |
commit | 61e08ccacbfdc6046ccabdfdb01f7755ed5ad8b1 (patch) | |
tree | b94ae6fe5057f5f97cbdb35785fb003cd3e19551 /csum-file.h | |
parent | c330fdd42dc57127272534cd2a8dd9569334b219 (diff) | |
download | git-61e08ccacbfdc6046ccabdfdb01f7755ed5ad8b1.tar.gz git-61e08ccacbfdc6046ccabdfdb01f7755ed5ad8b1.tar.xz |
builtin-apply.c: clean-up apply_one_fragment()
We had two pointer variables pointing to the same buffer and an
integer variable used to index into its tail part that was
active (old, oldlines and oldsize for the preimage, and their
'new' counterparts for the postimage).
To help readability, use 'oldlines' as the allocated pointer,
and use 'old' as the pointer to the tail that advances while the
code builds up the contents in the buffer. The size 'oldsize'
can be computed as (old-oldines).
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'csum-file.h')
0 files changed, 0 insertions, 0 deletions