summaryrefslogtreecommitdiff
path: root/t/t3004-ls-files-basic.sh
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2014-10-01 12:28:17 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-10-01 13:45:12 -0700
commit35ff08be099b36d0be855040a296f985d25dfd0a (patch)
tree0a7018d5549951c4ea77f3b816d975f73ec99d82 /t/t3004-ls-files-basic.sh
parentdelete_ref_loose(): don't muck around in the lock_file's filename (diff)
downloadtgif-35ff08be099b36d0be855040a296f985d25dfd0a.tar.xz
prepare_index(): declare return value to be (const char *)
Declare the return value to be const to make it clear that we aren't giving callers permission to write over the string that it points at. (The return value is the filename field of a struct lock_file, which can be used by a signal handler at any time and therefore shouldn't be tampered with.) Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3004-ls-files-basic.sh')
0 files changed, 0 insertions, 0 deletions