summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2014-10-01 12:28:35 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-10-01 13:51:30 -0700
commit0c0d6e8601a1cfb8ebbdadb6a25a9f6fadc91359 (patch)
treeb2d942b9b59fa6eed5f6b7a1cba0c0f7b2e05596 /cache.h
parentresolve_symlink(): take a strbuf parameter (diff)
downloadtgif-0c0d6e8601a1cfb8ebbdadb6a25a9f6fadc91359.tar.xz
trim_last_path_component(): replace last_path_elm()
Rewrite last_path_elm() to take a strbuf parameter and to trim off the last path name element in place rather than returning a pointer to the beginning of the last path name element. This simplifies the function a bit and makes it integrate better with its caller, which is now also strbuf-based. Rename the function accordingly and a bit less tersely. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
0 files changed, 0 insertions, 0 deletions