git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Please consider extending .gitignore to support setting of a file size limit
@ 2015-05-07 21:14 Roger Mendes
  2015-05-07 21:31 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Roger Mendes @ 2015-05-07 21:14 UTC (permalink / raw)
  To: git

Allow .gitignore to support setting a file size limit so that all
files over a certain size will by automatically ignored when
performing git add, commit -a...;
Exclusions to this size limit for files can be allowed by specifying
exceptions '!' syntax that already exists. It probably should be
considered to have a default limit already built into git of say 100MB
(used by github) which can be changed in the .gitignore file.

This would avoid accidental commits of large files which are known to
be poorly supported.

This seems like a fairly simple feature to add, I'm not sure why no
one has done this or thought of it given the number of complaints,
questions... with large file handling.

We can ignore by file name attribute, why not by file size?

Yes, I know I can add pre-commit scripts... to workaround this issue,
but there should be a better way (or maybe I'm missing something?).


Accidental commits of large files is a common mistake, and often
results in the commit taking an extremely long time to process and
sometimes if you kill the process, then you end up with corrupt git
repo (at least in jgit, which is used by Netbeans).

IMHO this would be a very useful feature.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-05-08 22:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-07 21:14 Please consider extending .gitignore to support setting of a file size limit Roger Mendes
2015-05-07 21:31 ` Junio C Hamano
2015-05-08  6:44   ` Thomas Koch
2015-05-08  6:54   ` Kevin Daudt
2015-05-08  7:09     ` Fredrik Gustafsson
2015-05-08 22:13       ` Stefan Beller
2015-05-08 21:55     ` Philip Oakley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).