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

Re: git list binary and/or non-binary files?

From
Sskillzero@gmail.com <skillzero@gmail.com>
Date
Aug 24, 2009, 22:39 UTC
Message-ID
<2729632a0908241539l7243c9a4v170e14140b45cb0b@mail.gmail.com>
In-Reply-To
<200908250014.03585.johan@herland.net>
On Mon, Aug 24, 2009 at 3:14 PM, Johan Herland<johan@herland.net> wrote:
> I use the following to list files that contain CRs, but that are not
> considered binary by Git:
>
>  git grep --cached -I -l -e $'\r'

Thanks, that's what I needed. I needed it to build a list to pass to a script so I used 'git grep -I --name-only -z -e "" | xargs -o ...'

Previous: Johan Herland
Message 3 of 3 in “git list binary and/or non-binary files?”
  1. skillzero@gmail.comAug 24, 2009
  2. Johan HerlandAug 24, 2009
  3. skillzero@gmail.comAug 24, 2009

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.