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

Re: re[6]: sparse checkout file with windows line endings doesn't work

From
Duy Nguyen <pclouds@gmail.com>
Date
Sep 20, 2013, 02:28 UTC
Message-ID
<CACsJy8AzrSPqcXhcLV_q6J-+qZaQMPFfO6eq6C=HvdvcXw+eSw@mail.gmail.com>
In-Reply-To
<SDZYTDk4NyMxKC4hPVQvMjM1MDUxNjg3@IBMLT4>

On Fri, Sep 20, 2013 at 8:52 AM, Martin Gregory <marting@adelaideinterim.com.au> wrote:

Show 20 quoted lines
> Something that would help is an easier way to debug sparse-checkout rules.
>
> When something goes wrong, there appears to be no way to understand what
> git thinks it's reading.   I'm not sure if such a way, if it existed, would help with
> trailing spaces, but if you could say
>
> git read-tree -muv HEAD
>
> and it would say
>
> reading '.git\info\sparse-checkout'...
> rule '/CONFIGURATION ' - no matches
>
> that would solve actually two problems:
>
> 1) You can see that it thinks there is a space there
>
> 2) the config file name is sparse-checkout, with a dash, not sparsecheckout...
> a mistake I made that had me scratching my head for some time, since everywhere
> else it doesn't have a dash!

"git check-ignore" is the closet one to this. Remember sparse-checkout and .gitignore share the same syntax, you could feed sparse-checkout file to check-ignore. You (or somebody else) may need to improve check-ignore a bit, though, to show the quotes because I don't think it does now.

-- 
Duy
Previous: Martin GregoryNext: Jeff King
Message 3 of 8 in “Re: re[4]: sparse checkout file with windows line endings doesn't work”
  1. Duy NguyenSep 20, 2013
  2. re[6]: sparse checkout file with windows line endings doesn't workMartin Gregory, Sep 20, 2013
  3. Duy NguyenSep 20, 2013
  4. Jeff KingSep 20, 2013
  5. re[2]: sparse checkout file with windows line endings doesn't workMartin Gregory, Sep 20, 2013
  6. Jeff KingSep 20, 2013
  7. re[2]: sparse checkout file with windows line endings doesn't workMartin Gregory, Sep 20, 2013
  8. Junio C HamanoSep 20, 2013

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.