Skip to content

Commit 789f6f2

Browse files
dschogitster
authored andcommitted
expand_user_path(): remove stale part of the comment
In 395de25 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b7d11a0 commit 789f6f2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

path.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -719,9 +719,8 @@ static struct passwd *getpw_str(const char *username, size_t len)
719719
}
720720

721721
/*
722-
* Return a string with ~ and ~user expanded via getpw*. If buf != NULL,
723-
* then it is a newly allocated string. Returns NULL on getpw failure or
724-
* if path is NULL.
722+
* Return a string with ~ and ~user expanded via getpw*. Returns NULL on getpw
723+
* failure or if path is NULL.
725724
*
726725
* If real_home is true, strbuf_realpath($HOME) is used in the expansion.
727726
*/

0 commit comments

Comments
 (0)