diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2011-11-13 17:22:14 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-11-13 12:21:06 -0800 |
commit | c6893323917cbf4cb66c29ba2ac03014a44f0f0c (patch) | |
tree | cc14f88d5ebfd114e5c80f74506eff6c9a5fa68b /t/t5600-clone-fail-cleanup.sh | |
parent | Git 1.7.8-rc2 (diff) | |
download | tgif-c6893323917cbf4cb66c29ba2ac03014a44f0f0c.tar.xz |
Convert many resolve_ref() calls to read_ref*() and ref_exists()
resolve_ref() may return a pointer to a static buffer, which is not
safe for long-term use because if another resolve_ref() call happens,
the buffer may be changed. Many call sites though do not care about
this buffer. They simply check if the return value is NULL or not.
Convert all these call sites to new wrappers to reduce resolve_ref()
calls from 57 to 34. If we change resolve_ref() prototype later on
to avoid passing static buffer out, this helps reduce changes.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5600-clone-fail-cleanup.sh')
0 files changed, 0 insertions, 0 deletions