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

Re: [PATCH] gitignore: warn about pointless syntax

From
Thomas Rast <trast@student.ethz.ch>
Date
Jan 10, 2012, 09:44 UTC
Message-ID
<87d3arnb6t.fsf@thomas.inf.ethz.ch>
In-Reply-To
<alpine.LNX.2.01.1201100639340.11534@frira.zrqbmnf.qr>
Jan Engelhardt <jengelh@medozas.de> writes:
Show 6 quoted lines
>
> As I see it, foo/**/*.o for example is equal to placing "*.o" in
> foo/.gitignore, so the feature is already implemented, just not
> through the syntax people falsely assume it is. And that is the
> reason for wanting to output a warning. If it was me, I'd even make
> it use error(),

No, please don't even think about it. Having an error() there would mean that git would be essentially useless in repositories that have this mistake, and the user may not be in a position to fix the repository!

(He could drag along a local change to that effect, which is highly annoying if the repository is otherwise read-only for him.)

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Jan EngelhardtNext: Jeff King
Message 10 of 11 in “gitignore warn about ** submission”
  1. Jan EngelhardtJan 9, 2012
  2. gitignore: warn about pointless syntaxJan Engelhardt, Jan 9, 2012
  3. Jeff KingJan 9, 2012
  4. Junio C HamanoJan 9, 2012
  5. Jeff KingJan 9, 2012
  6. Jan EngelhardtJan 10, 2012
  7. Junio C HamanoJan 10, 2012
  8. Jan EngelhardtJan 10, 2012
  9. Jan EngelhardtJan 10, 2012
  10. Thomas RastJan 10, 2012
  11. Jeff KingJan 10, 2012

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.