commit 429368744b3e6dbc5815cd879e2bfff3fdc1d44cb3f830db92da235450e60ab7 from: Stefan Sperling date: Wed Jul 16 13:51:56 2025 UTC document additional reference name restriction details in git-repository.5 commit - 4659994cff5efe649166090831dd07a35b8f240b773df2220abc59fadaf87e0c commit + 429368744b3e6dbc5815cd879e2bfff3fdc1d44cb3f830db92da235450e60ab7 blob - 26621b63b0e7c74dfb301cfe3153e60d69be8346dbb9fc92a34e6d20ef6a466e blob + 1174cc25ae47bcd6f66db2802ce11f4163d4812f809c2f76266c26638a48d798 --- got/git-repository.5 +++ got/git-repository.5 @@ -113,7 +113,7 @@ tip commit of a branch. Because references may point to arbitrary object IDs, their use is not limited to branches. .Pp -The name is a UTF-8 string with the following disallowed characters: +The name is a non-empty UTF-8 string with the following disallowed characters: .Sq \ \& (space), \(a~ (tilde), @@ -123,6 +123,10 @@ The name is a UTF-8 string with the following disallow * (asterisk), [ (opening square bracket), \\ (backslash). +The name may not be the string +.Dq @ , +may not begin with a / (slash), and may not begin or end +with a \. (period). Additionally, the name may not contain the two-character sequences //, .. , and @{. .Pp