Subject: [PATCH v2 02/21] path.c: rename vsnpath() to git_vsnpath()

From: Nguyễn Thái Ngọc Duy <[email-masked]>
Date: Sat, 14 Dec 2013 17:54:48 +0700

This is the underlying implementation of git_path(), git_pathdup() and
git_snpath() which will prefix $GIT_DIR in the result string. Put git_
prefix in front of it to avoid the confusion that this is a generic
path handling function.#

Signed-off-by: Nguyễn Thái Ngọc Duy <[email-masked]>
---
 path.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/path.c b/path.c
index 4c1c144..06863b7 100644
--- a/path.c
+++ b/path.c
@@ -50,7 +50,7 @@ char *mksnpath(char *buf, size_t n, const char *fmt, ...)
 	return cleanup_path(buf);
 }
 
-static char *vsnpath(char *buf, size_t n, const char *fmt, va_list args)
+static char *git_vsnpath(char *buf, size_t n, const char *fmt, va_list args)
 {
 	const char *git_dir = get_git_dir();
 	size_t len;
@@ -75,7 +75,7 @@ char *git_snpath(char *buf, size_t n, const char *fmt, ...)
 	char *ret;
 	va_list args;
 	va_start(args, fmt);
-	ret = vsnpath(buf, n, fmt, args);
+	ret = git_vsnpath(buf, n, fmt, args);
 	va_end(args);
 	return ret;
 }
@@ -85,7 +85,7 @@ char *git_pathdup(const char *fmt, ...)
 	char path[PATH_MAX], *ret;
 	va_list args;
 	va_start(args, fmt);
-	ret = vsnpath(path, sizeof(path), fmt, args);
+	ret = git_vsnpath(path, sizeof(path), fmt, args);
 	va_end(args);
 	return xstrdup(ret);
 }
@@ -128,7 +128,7 @@ char *git_path(const char *fmt, ...)
 	char *ret;
 
 	va_start(args, fmt);
-	ret = vsnpath(pathname, len, fmt, args);
+	ret = git_vsnpath(pathname, len, fmt, args);
 	va_end(args);
 	return ret;
 }
-- 
1.8.5.1.77.g42c48fa