summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorLibravatar Miriam Rubio <mirucam@gmail.com>2019-10-28 17:55:23 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-10-29 11:54:23 +0900
commit6c020421390e9470b6e1a2e16e6978c239973bb5 (patch)
tree8f5a09147c0d7f31714b471bc56f2cd09165b05f /daemon.c
parentGit 2.23 (diff)
downloadtgif-6c020421390e9470b6e1a2e16e6978c239973bb5.tar.xz
clone: rename static function `dir_exists()`.
builtin/clone.c has a static function dir_exists() that checks if a given path exists on the filesystem. It returns true (and it is correct for it to return true) when the given path exists as a non-directory (e.g. a regular file). This is confusing. What the caller wants to check, and what this function wants to return, is if the path exists, so rename it to path_exists(). Signed-off-by: Miriam Rubio <mirucam@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'daemon.c')
0 files changed, 0 insertions, 0 deletions