summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-01-30 13:12:25 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-02-05 00:38:41 -0800
commit61e08ccacbfdc6046ccabdfdb01f7755ed5ad8b1 (patch)
treeb94ae6fe5057f5f97cbdb35785fb003cd3e19551 /hash.c
parentbuiltin-apply.c: mark common context lines in lineinfo structure. (diff)
downloadtgif-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 'hash.c')
0 files changed, 0 insertions, 0 deletions