On Sun, Jul 24, 2011 at 3:00 AM, Philip Oakley <philipoakley@xxxxxxx> wrote: > Has there been any discussion in the past on a method for ignoring large > files via the .gitignore process? > > It does appear to be a moderately common problem for folk to accidentally > commit a large file which bloats their repository and they want rid of it, > which causes history re-writes and such palaver. Once they are in, they cannot be ignored. Perhaps commit hooks at server side is a better place? > Perhaps a simple '>' and '<' option (the latter to cover null or minimal > files?) with a --warn postfix may be possible. Just an initial thought. Or you can make use of .gitattributes, more flexible syntax. > Where would the 'right place' be for me to look at the git code if it was > beneficial. In dir.c, add_exlude() does the parsing, excluded_from_list() handles the logic. -- Duy -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html