Skip to content

Instantly share code, notes, and snippets.

@rgngl
Created December 21, 2009 23:24
Show Gist options
  • Save rgngl/261350 to your computer and use it in GitHub Desktop.
Save rgngl/261350 to your computer and use it in GitHub Desktop.
--- ack-grep-1.88/Ack.pm 2009-02-07 21:41:53.000000000 +0200
+++ ack-grep-1.88-ustun/Ack.pm 2009-12-08 09:46:55.169029564 +0200
@@ -522,6 +522,7 @@
/#.+#$/ - Emacs swap files
/[._].*\.swp$/ - Vi(m) swap files
/core\.\d+$/ - core dumps
+ /(moc_).*\.cpp$/i - Qt moc generated files
=cut
@@ -532,6 +533,7 @@
return if $filename =~ /[.]bak$/;
return if $filename =~ /~$/;
return if $filename =~ m{[$dir_sep_chars]?(?:#.+#|core\.\d+|[._].*\.swp)$}o;
+ return if $filename =~ /(moc_).*\.cpp$/i;
return 1;
}
@@ -763,6 +765,7 @@
/#.+#\$/ - Emacs swap files
/[._].*\\.swp\$/ - Vi(m) swap files
/core\\.\\d+\$/ - core dumps
+ /(moc_).*\.cpp$/i - Qt moc generated files
Miscellaneous:
--noenv Ignore environment variables and ~/.ackrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment