[Koha-bugs] [Bug 32473] Exclude compiled files from some git commands

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 16 09:55:15 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32473

--- Comment #4 from Julian Maurice <julian.maurice at biblibre.com> ---
(In reply to Jonathan Druart from comment #3)
> I really would like them to be invisible to devs. Not there for stash,
> status, diff, etc.

Maybe we should really exclude them from git then ?
It's a good practice to avoid tracking compiled files in git. In addition to
the problems you already mentioned, they increase the repository size.
But that would make the build step required in production environments that use
git, which might be not wanted.
Another potential solution would be to move them to another git repository
(like what was suggested for PO files) and use it as an optional git submodule
? On a dev environment you wouldn't need it, and in prod environments you could
just grab the already compiled files.
Anyway, all of that might be too complicated just to hide a few files from git
output :)

I never used `update-index --assume-unchanged` so I don't know what it implies,
but it looks like it will generate confusing errors for those that don't know
what the 'assume unchanged' flag is, and how to unset it

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list