piranha / goreplace

command line tool for search and replace
ISC License
185 stars 14 forks source link

Does not exclude files from .gitignore #8

Closed espen closed 11 years ago

espen commented 11 years ago

~/p/test (master) goreplace Usage of goreplace 0.4.3: gr [OPTS] string-to-search

Ignoring patterns from test/.gitignore: globs: .bundle /db/.sqlite3 /log/ /tmp/* .DS_Store .rbenv-gemsets .powenv /public/uploads/\ /public/assets

~/p/test (master) goreplace aws -n Skipping log/development.log, too big: 38096819 Skipping log/test.log, too big: 395531579 tmp/cache/assets/D5D/A70/sprockets%2Fe8712ded68ed3a8ac1b18ac400244c32 tmp/cache/assets/D6E/0E0/sprockets%2Feaaea015e64217c9ff78f24eba681651 tmp/cache/assets/E2E/9A0/sprockets%2F6fdcccd483dc6dbc7fc31adb80d50668

piranha commented 11 years ago

Hm, interesting... give me a bit of time.

piranha commented 11 years ago

That's because Go's filepath.Match is more traditional than git's matching. * matches only non-separator characters there. I'll fix this, but maybe not in 10 minutes. :)

piranha commented 11 years ago

Fixed in last version, thanks for reporting!