git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 0/3] attributes

From
Alex Riesen <raa.lkml@gmail.com>
Date
Apr 13, 2007, 15:02 UTC
Message-ID
<81b0412b0704130802n185bd009l8c72a1dd6c00eb16@mail.gmail.com>
In-Reply-To
<7vslb4d4wv.fsf@assigned-by-dhcp.cox.net>
On 4/13/07, Junio C Hamano <junkio@cox.net> wrote:
Show 19 quoted lines
> So, you can express:
>
>         *       crlf !nodiff
>         *.[oa]  !crlf nodiff
>         *.ps    nodiff
>         t/*.ps  !nodiff
>
> to mean:
>
>         In general, I want all files to undergo autocrlf
>         conversion, and I do not want to disable textual diff
>         output for them, but files whose name match *.o or *.a
>         are binaries so do not touch them with autocrlf and do
>         not show textual diff for them.  Also, I do not want to
>         see diffs for *.ps files because I cannot read
>         PostScript, but I do want to see diffs of PostScript
>         files in t/ directory.  In either case, PostScript files
>         undergo autocrlf conversion.
>

I'd suggest to extend git-ls-files with a switch listing the files with attributes (and their attributes, of course). Will help to diagnose problems with attribute assignment.

Previous: Junio C Hamano
Message 2 of 2 in “attributes”
  1. 0/3 attributesJunio C Hamano, Apr 13, 2007
  2. Alex RiesenApr 13, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.