Is there a way to have git status ignore some changes inside the file?
Background
I have several files in my repository that are automatically generated (yes, I know that it is usually not recommended, but I have no way to change this). Whenever I build my tree, these automatically generated files contain updated status information (who created them, timestamp, etc.).
When I say git status , I would like it to run a filter for these generated files, which removes this transient status information. I want it to appear in the "Changed but not updated:" section of git output if other real changes exist.
Using the .gitattributes approach found at https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes , I can get git diff to ignore these status bar changes using a simple egrep filter. I would like to get git status to use textconv filters (or something similar).
I would prefer that none of these filters affect mergers.
source share