summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-12-10 21:33:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-12-10 23:38:59 (GMT)
commite850194c83985396435b01b70d2db00b6d3af02e (patch)
treea13a88de4799865914dd7798306af1716472d376 /git-compat-util.h
parentbc497127894ab6ad955d474c72836c03282e6c6f (diff)
downloadgit-e850194c83985396435b01b70d2db00b6d3af02e.zip
git-e850194c83985396435b01b70d2db00b6d3af02e.tar.gz
git-e850194c83985396435b01b70d2db00b6d3af02e.tar.bz2
ident: make xgetpwuid_self() a static local helper
This function is defined in wrapper.c, but nobody besides ident.c uses it. And nobody is likely to in the future, either, as anything that cares about the user's name should be going through the ident code. Moving it here is a cleanup of the global namespace, but it will also enable further cleanups inside ident.c. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 4fe10cc..0feeae2 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -923,9 +923,6 @@ int access_or_die(const char *path, int mode, unsigned flag);
/* Warn on an inaccessible file that ought to be accessible */
void warn_on_inaccessible(const char *path);
-/* Get the passwd entry for the UID of the current process. */
-struct passwd *xgetpwuid_self(void);
-
#ifdef GMTIME_UNRELIABLE_ERRORS
struct tm *git_gmtime(const time_t *);
struct tm *git_gmtime_r(const time_t *, struct tm *);