Closed
Bug 1070128
Opened 11 years ago
Closed 11 years ago
Rename data/templates to data/.template_cache
Categories
(Bugzilla :: Bugzilla-General, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: gerv, Unassigned)
Details
The docs contain a warning not to edit the templates in data/templates instead of templates/ by mistake. Also, every time I grep a Bugzilla directory without qualifiers, I get double-hits - one from template/ and one from data/template, which is useless noise.
We could solve both of these problems by renaming data/templates to data/.template_cache . The leading "." would hide it from grep and randomly-browsing users, and calling it "template_cache" would make it clear that it's a temporary directory and can be safely deleted if necessary.
Gerv
| Reporter | ||
Comment 1•11 years ago
|
||
glob: can you think of any reason why this would be a bad idea?
Gerv
Flags: needinfo?(glob)
my version of grep (gnu 2.14) searches data/.template by default, so this change wouldn't hide it from grep.
hrm, i'm not convinced that renaming the directories is the right way to address your grep issue.
i suggest you use a grep alternative such as ack (http://betterthangrep.com/) and configure it to ignore the data/templates directory:
~/.ackrc:
--ignore-dir=data/template
--ignore-dir=data/assets
renaming the directory to template_cache has some merit, however i don't think the issue occurs often enough any more for us to take the hit here.
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(glob)
Resolution: --- → WONTFIX
| Reporter | ||
Comment 3•11 years ago
|
||
I do use ack, actually. I've added those to my .ackrc.
Gerv
You need to log in
before you can comment on or make changes to this bug.
Description
•