expand_user_path(): clarify the role of the `real_home` parameter

The `real_home` parameter only has an effect when expanding paths starting with `~/`, not when expanding paths starting with `~<user>/`. Let's make that clear. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Jul 24, 2021 at 22:06 UTC 644e6b2c0f55fa52de88586d375e03ac7f7914b7
1 file changed +1 -1
path.c
+1 -1
@@ -722,7 +722,7 @@ static struct passwd *getpw_str(const char *username, size_t len)
722 * Return a string with ~ and ~user expanded via getpw*. Returns NULL on getpw
723 * failure or if path is NULL.
724 *
725 - * If real_home is true, strbuf_realpath($HOME) is used in the expansion.
725 + * If real_home is true, strbuf_realpath($HOME) is used in the `~/` expansion.
726 */
727 char *expand_user_path(const char *path, int real_home)
728 {