.lrs and .res are generated files, though in some cases you might want to store them.
I would like to exclude them from gitignore since in a real life example (follow the link) packages can not be compiled without them.
But is that a necessary thing, or simply a badly crafted package? Does the package have a .rc file to make the relevant .res and is that added to the project?
This is the package example:
https://bitbucket.org/avra/ct4laz/downloads/pl_excontrols.zipIf, for example TplSmartGridCursors.res file is missing, the package can not compile. There are no *.rc files inside. Archive holds all *.res files, but when mentioned .gitignore file was applied to the repo, all *.res files were missing. Having *.res without *.rc might mean that it is a badly crafted package, but it is forked package and not mine, so I have only partial control on it.
That is the reason why I would like to have *.res and *.lrs files excluded from .gitignore, and I would like to discuss if that is in general good thing or bad thing for Lazarus .gitignore. I am more practical then purist, so having a real issue with such .gitignore file config makes me vote for exclusion, but if general preference is to leave it be - I will. I can solve my package issue with local .gitignore modification anyway. The reason I started the discussion at the first place is to determine optimal .gitignore file.
Therefore I am asking if there are some suggestions for further refinement of this gitignore Lazarus template.
You can also exclude *.pcp and *.ppl. The former is the meta file for dynamic packages (aka the PPU variant for packages) and the later is a binary dynamic package (the equivalent to Delphi's .bpl[/i) if the OS allows to change the file extension for libraries (macOS does not for example).
Ok, I will include those in .gitignore file, too. Thank you for the contribution.