{"thread":{"id":"31429","subject":"[PATCH 1/5] path.c: Remove the 'git_' prefix from a file scope function","startedAt":"2012-09-04T17:26:30Z","lastAt":"2012-09-04T17:26:30Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":5},"messages":[{"id":"198326","messageId":"504639C6.8000009@ramsay1.demon.co.uk","threadId":"31429","inReplyTo":null,"subject":"[PATCH 1/5] path.c: Remove the 'git_' prefix from a file scope function","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsay1.demon.co.uk","sentAt":"2012-09-04T17:26:30Z","receivedAt":"2012-09-04T17:26:30Z","isPatch":true,"sender":{"key":"ramsay@ramsayjones.plus.com","avatar":"https://avatars.githubusercontent.com/u/33702710?v=4"},"body":"\nIn particular, the git_vsnpath() function, despite the 'git_' prefix\nsuggesting otherwise, is (correctly) declared with file scope.\n\nSigned-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>\n---\n path.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)\n\ndiff --git a/path.c b/path.c\nindex 66acd24..9eb5333 100644\n--- a/path.c\n+++ b/path.c\n@@ -48,7 +48,7 @@ char *mksnpath(char *buf, size_t n, const char *fmt, ...)\n \treturn cleanup_path(buf);\n }\n \n-static char *git_vsnpath(char *buf, size_t n, const char *fmt, va_list args)\n+static char *vsnpath(char *buf, size_t n, const char *fmt, va_list args)\n {\n \tconst char *git_dir = get_git_dir();\n \tsize_t len;\n@@ -72,7 +72,7 @@ char *git_snpath(char *buf, size_t n, const char *fmt, ...)\n {\n \tva_list args;\n \tva_start(args, fmt);\n-\t(void)git_vsnpath(buf, n, fmt, args);\n+\t(void)vsnpath(buf, n, fmt, args);\n \tva_end(args);\n \treturn buf;\n }\n@@ -82,7 +82,7 @@ char *git_pathdup(const char *fmt, ...)\n \tchar path[PATH_MAX];\n \tva_list args;\n \tva_start(args, fmt);\n-\t(void)git_vsnpath(path, sizeof(path), fmt, args);\n+\t(void)vsnpath(path, sizeof(path), fmt, args);\n \tva_end(args);\n \treturn xstrdup(path);\n }\n-- \n1.7.12\n"}]}