summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Ramsay Jones <ramsay@ramsay1.demon.co.uk>2012-09-04 18:29:22 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-09-04 13:34:46 -0700
commit5c44252e13db2324d7c79d2b498886a925055111 (patch)
tree8e65e44c7b7025dffb9d8ee680f5699d12a5b79c /t
parentpath.c: Don't discard the return value of vsnpath() (diff)
downloadtgif-5c44252e13db2324d7c79d2b498886a925055111.tar.xz
path.c: Use vsnpath() in the implementation of git_path()
The current implementation of git_path() is essentially the same as that of vsnpath(), with two minor differences. First, git_path() currently insists that the git directory path is no longer than PATH_MAX-100 characters in length. However, vsnpath() does not attempt this arbitrary 100 character reservation for the remaining path components. Second, vsnpath() uses the "is_dir_sep()" macro, rather than comparing directly to '/', to determine if the git_dir path component ends with a path separator. In order to benefit from the above improvements, along with increased compatability with git_snpath() and git_pathdup(), we reimplement the git_path() function using vsnpath(). Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions