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