summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2021-07-24 22:06:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-07-26 19:17:16 (GMT)
commit789f6f226b6c7a5b28468044c1705c62aef5eeb9 (patch)
treee78091d18ed9db522acab3e25c66582e22d5a66a /path.c
parentb7d11a0f5d2db1eff623150cdc2a2ddccd6845b3 (diff)
downloadgit-789f6f226b6c7a5b28468044c1705c62aef5eeb9.zip
git-789f6f226b6c7a5b28468044c1705c62aef5eeb9.tar.gz
git-789f6f226b6c7a5b28468044c1705c62aef5eeb9.tar.bz2
expand_user_path(): remove stale part of the comment
In 395de250d9d (Expand ~ and ~user in core.excludesfile, commit.template, 2009-11-17), the `user_path()` function was refactored into the `expand_user_path()`. During that refactoring, the `buf` parameter was lost, but the code comment above said function still talks about it. Let's remove that stale part of the comment. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'path.c')
-rw-r--r--path.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/path.c b/path.c
index 7bccd83..3318ad2 100644
--- a/path.c
+++ b/path.c
@@ -719,9 +719,8 @@ static struct passwd *getpw_str(const char *username, size_t len)
}
/*
- * Return a string with ~ and ~user expanded via getpw*. If buf != NULL,
- * then it is a newly allocated string. Returns NULL on getpw failure or
- * if path is NULL.
+ * Return a string with ~ and ~user expanded via getpw*. Returns NULL on getpw
+ * failure or if path is NULL.
*
* If real_home is true, strbuf_realpath($HOME) is used in the expansion.
*/