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

Re: [PATCH] docs: .gitignore parsing is to the top of the repo

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 7, 2021, 01:20 UTC
Message-ID
<xmqqh7h6gbs4.fsf@gitster.g>
In-Reply-To
<CA0F1460-CB39-45DC-8DED-13F7ABA674D1@furrypaws.ca>
"Andrew Berry" <andrew@furrypaws.ca> writes:
>>> Line rewrapping makes it hard to see what actually got changed,
>
> To check, that's asked for, correct? Or is it better to do one commit
> with the word changes, another to clean up the wrapping?

We do not encourage one-word-per-line or other silliness, but as long as the source is readable enough, there is no need for line re-wrapping, and I suspect that principle would apply.

Show 9 quoted lines
>> Another tangent.  The discovery process used for the .gitattributes
>> files is identical to what is done to the .gitignore files; we may
>> want to make sure that the explanation we give in our documentation
>> won't cause the same confusion you are trying to avoid with this
>> change.  Such a fix does not have to be (and probably should not be)
>> a part of this change, though.
>
> I'm out of the office for the next week, but otherwise I'm glad to
> take that on when I'm back if no one else picks it up.
Here is how we describe the .gitattributes side:
    When deciding what attributes are assigned to a path, Git
    consults `$GIT_DIR/info/attributes` file (which has the highest
    precedence), `.gitattributes` file in the same directory as the
    path in question, and its parent directories up to the toplevel of the
    work tree (the further the directory that contains `.gitattributes`
    is from the path in question, the lower its precedence). Finally
    global and system-wide files are considered (they have the lowest
    precedence).
I think we are already good on this side.
Thanks.
Previous: Andrew BerryNext: Andrew Berry
Message 13 of 16 in “docs: .gitignore in parents is current repo only”
  1. docs: .gitignore in parents is current repo onlyAndrew Berry, Jul 2, 2021
  2. Junio C HamanoJul 3, 2021
  3. Bagas SanjayaJul 3, 2021
  4. Andrew BerryJul 5, 2021
  5. Junio C HamanoJul 5, 2021
  6. Andrew BerryJul 5, 2021
  7. Junio C HamanoJul 6, 2021
  8. docs: .gitignore parsing is to the top of the repoAndrew Berry, Jul 6, 2021
  9. docs: .gitignore parsing is to the top of the repoAndrew Berry, Jul 6, 2021
  10. Junio C HamanoJul 6, 2021
  11. Junio C HamanoJul 7, 2021
  12. Andrew BerryJul 7, 2021
  13. Junio C HamanoJul 7, 2021
  14. Andrew BerryJul 18, 2021
  15. Junio C HamanoJul 19, 2021
  16. Junio C HamanoJul 6, 2021

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.