From: Junio C Hamano <gitster@pobox.com>
To: D无数 <wushuripple@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: End-of-line comments are prompted with "is not a valid attribute name"
Date: Sun, 17 Dec 2023 09:15:48 -0800 [thread overview]
Message-ID: <xmqqo7eoiwcb.fsf@gitster.g> (raw)
In-Reply-To: <xmqqsf45nbzm.fsf@gitster.g> (Junio C. Hamano's message of "Wed, 13 Dec 2023 11:22:53 -0800")
Junio C Hamano <gitster@pobox.com> writes:
> This is totally expected; nothing to see here.
To put it another way, we do not have "end-of-line comment"
(i.e. the leading part of a line has payload, but the line is
chomped in the middle with a comment character and the remainder of
the line is ignored) at all. We have "commented line" (in other
words, a line that is totally commented out and gets ignored).
I think it is very clearly documented in "git help attributes":
A `gitattributes` file is a simple text file that gives
`attributes` to pathnames.
Each line in `gitattributes` file is of form:
pattern attr1 attr2 ...
That is, a pattern followed by an attributes list,
separated by whitespaces. Leading and trailing whitespaces are
ignored. Lines that begin with '#' are ignored. Patterns
that begin with a double quote are quoted in C style.
next prev parent reply other threads:[~2023-12-17 17:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-13 17:32 End-of-line comments are prompted with "is not a valid attribute name" D无数
2023-12-13 19:22 ` Junio C Hamano
2023-12-17 17:15 ` Junio C Hamano [this message]
2023-12-17 17:28 ` D无数
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqo7eoiwcb.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=wushuripple@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.