3 ms·
Nice! svn support would be useful (ignore .svn directories) and the -r option is easy to remember, but perhaps not so much in line with the already messy standa
by lazyjones 13y ago
Nice! svn support would be useful (ignore .svn directories) and the -r option is easy to remember, but perhaps not so much in line with the already messy standard Unix options (-r or -R for recursive operation).
Note that specifically for Go source code, there is "go fix -r" for syntax/context-aware code replacement (see "godoc fix").
- piranha 13y agoIn case of go fix `-r` does something absolutely unrelated. To be honest, I was just lazy inventing a command line key and it's recursive by design, so it happened this way. Plus, as you say, it's easy to remember because of mnemonics. I haven't touched svn repos in years, but yeah, that could be added. I know they exist, it just that I haven't felt the need to support them.
- piranha 13y agoBtw, it ignores .svn and a bit more common stuff if it doesn't find itself in a git or hg repo.
- thameera 13y agoExactly. gr can be for find/sed like ack is for grep.