# # patch "ChangeLog" # from [4aeefa2d2b08378898fdaa41918aa9b13af33557] # to [15b6f843b403614bf02042b373d26ad60d85856d] # # patch "std_hooks.lua" # from [4ed8fde74ed25fbbc5e693d3acd81c468768fed0] # to [22397c44293cb716cf7a7b2f564eb3d9d4e892f1] # --- ChangeLog +++ ChangeLog @@ -1,3 +1,9 @@ +2005-05-11 Nathaniel Smith + + * std_hooks.lua (ignore_file): Organize a bit more, add + patterns for autotools cache files, and darcs, codeville, git + metadata directories. + 2005-05-11 Joel Reed * contrib/monotone.zsh_completion: add zsh completion contrib. --- std_hooks.lua +++ std_hooks.lua @@ -55,25 +55,39 @@ function ignore_file(name) + -- c/c++ if (string.find(name, "%.a$")) then return true end if (string.find(name, "%.so$")) then return true end if (string.find(name, "%.o$")) then return true end if (string.find(name, "%.la$")) then return true end if (string.find(name, "%.lo$")) then return true end + if (string.find(name, "^core$")) then return true end + if (string.find(name, "/core$")) then return true end + -- python + if (string.find(name, "%.pyc$")) then return true end + if (string.find(name, "%.pyo$")) then return true end + -- TeX if (string.find(name, "%.aux$")) then return true end + -- backup files if (string.find(name, "%.bak$")) then return true end if (string.find(name, "%.orig$")) then return true end if (string.find(name, "%.rej$")) then return true end if (string.find(name, "%~$")) then return true end - if (string.find(name, "/core$")) then return true end + -- autotools detritus: + if (string.find(name, "^autom4te.cache/")) then return true end + if (string.find(name, "/autom4te.cache/")) then return true end + if (string.find(name, "^.deps/")) then return true end + if (string.find(name, "/.deps/")) then return true end + -- other VCSes: if (string.find(name, "^CVS/")) then return true end if (string.find(name, "/CVS/")) then return true end if (string.find(name, "^%.svn/")) then return true end if (string.find(name, "/%.svn/")) then return true end if (string.find(name, "^SCCS/")) then return true end if (string.find(name, "/SCCS/")) then return true end - if (string.find(name, "%.pyc$")) then return true end - if (string.find(name, "%.pyo$")) then return true end + if (string.find(name, "^_darcs/")) then return true end + if (string.find(name, "^.cdv/")) then return true end + if (string.find(name, "^.git/")) then return true end return false; end