[PATCH] .gitignore: don't ignore .gitattributes files
Tom Rini
trini at konsulko.com
Fri Jul 18 17:01:21 CEST 2025
On Fri, Jul 18, 2025 at 10:56:34AM +0200, Rasmus Villemoes wrote:
> In a private fork, it's not unreasonable to commit various binary
> files associated to one's project, and thus put a suitable
> .gitattributes file next to it to force git to treat that file as
> binary. In my case, I have a .xslx spreadsheet used for computing
> suitable RAM timing tables, which I wanted to put in
> board/<vendor>/<project>. Git duly warned me that it would do LF/CRLF
> mangling, so I also added a .gitattributes file next to it with
>
> *.xlsx binary
>
> but upon adding that file, git told me that I'd have to use -f because
> it's a dot-file that is by default ignored.
>
> Add .gitattributes to the list of dot-files that should not be
> ignored.
>
> While in here, sort the list and update the comment, as there are also
> files which git itself does not make use of in the list, cf. linux
> commit f46e65da48b2 (".gitignore: exclude .get_maintainer.ignore and
> .gitattributes").
>
> Signed-off-by: Rasmus Villemoes <ravi at prevas.dk>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250718/efaf35f0/attachment.sig>
More information about the U-Boot
mailing list