Page MenuHomeFreeBSD

gitignore: expand list of ignored files

Authored by royger on Jan 11 2021, 5:35 PM.



Add the *.swp and *~ pattern for vim temporary files. Expand the
cscope ones to include all files possibly generated by cscope and also
add some known object formats.

Also remove the leading '?' from cscope.out, or else it doesn't match
the cscope.out file generated by default (as it expects an extra
character in front).

Sponsored by: Citrix Systems R&D

Diff Detail

rG FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Jan 11 2021, 5:37 PM

?cscope.out is removed, is that intentional?

I wonder whether to also add '~.' to the list of patterns.

?cscope.out is removed, is that intentional?

yes, I'm not sure the point of that pattern, as the cscope database is cscope.out, so adding a ? prevents the match. I can keep it while adding the plain cscope.out pattern, but I'm unsure why it's there in the first place (other projects don't seem to have it FWIW).

Expand the list of file patterns to ignore.

This revision now requires review to proceed.Jan 11 2021, 5:49 PM
This revision is now accepted and ready to land.Jan 11 2021, 5:51 PM

what creates these?


I think it was a fail-safe in SVN to avoid committing *.a files to the repository.

But, your comment here versus the one emailed to me are different (my email shows your comment after '_.tinderbox.*').

If the latter was what you were inquiring about, I believe they are log files created by 'make tinderbox'.

Note that I have D28047 uncommitted for cscope files, but am happy to abandon that in favor of this. I also don't see a need for ?cscope.out.


Those are library archive files created by ar usually.

This revision was automatically updated to reflect the committed changes.