aboutsummaryrefslogtreecommitdiff
path: root/tools/hooks/pre-commit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tools/hooks/pre-commit.rb')
-rwxr-xr-xtools/hooks/pre-commit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hooks/pre-commit.rb b/tools/hooks/pre-commit.rb
index f93281c..c224a49 100755
--- a/tools/hooks/pre-commit.rb
+++ b/tools/hooks/pre-commit.rb
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
result = 0
-files = Dir.glob("**/*.h") + Dir.glob("**/*.cpp")
+files = Dir.glob("src/**/*.h") + Dir.glob("src/**/*.cpp") + Dir.glob("lib/**/*.h") + Dir.glob("lib/**/*.cpp")
puts "pre-commit: #{`pwd`}"