summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2014-10-01 12:28:35 +0200
committerJunio C Hamano <gitster@pobox.com>2014-10-01 13:51:30 -0700
commit0c0d6e8601a1cfb8ebbdadb6a25a9f6fadc91359 (patch)
treeb2d942b9b59fa6eed5f6b7a1cba0c0f7b2e05596 /cache.h
parent6cad805332e3c3a60993f062afd8d896920689ab (diff)
downloadgit-0c0d6e8601a1cfb8ebbdadb6a25a9f6fadc91359.tar.gz
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