Re: Please consider extending .gitignore to support setting of a file size limit
- From
Philip Oakley <philipoakley@iee.org>
- Date
- May 8, 2015, 21:55 UTC
- Message-ID
- <682DB2BD13D143CEB606BF9C8E4E55D5@PhilipOakley>
- In-Reply-To
- <20150508065459.GB31516@vps892.directvps.nl>
From: "Kevin Daudt" <me@ikke.info>
Show 14 quoted lines
> On Thu, May 07, 2015 at 02:31:12PM -0700, Junio C Hamano wrote: >> Roger Mendes <sproger1@gmail.com> writes: >> >> Having said all that, why is it that you do not want to track >> certain files that happen to be large? Don't the existing large >> file support facility work for you (or perhaps you are not using >> them)? It might be that your time is better spent on improving >> that, instead of working around the issue, no? >> > > My experience in #git is that people want to prevent other people > accidentelly adding large files, resulting in all sorts of problems, > which takes a lot of effort to fix if you're not an experienced user. > --
I'd also support this option.
One issue is to locate a suitable method/character code for the 'magic pathspec' that would define a size limit that can be used for the 'git add .' etc., and possibly also for sparse checkout (definitely an area where a size limit may be appropriate for some users).
The ability to extend the ignore method could also, in the future be used for a possible narrow clone (when desired). -- Philip