I have a couple of files in my repository that change every other commit but these changes literally don't change anything. Let me explain. For example, I have a file called ethereal
with the following contents:
foo
bar
kappa
I make a commit and then the mysterious entity changes the file to this:
foo, bar,
kappa
These files are exactly the same for the project.
The mysterious entity changes them for no reason. But here's a thing: git doesn't know that these files are the same.
That's why almost every commit includes a meaningless change of the file ethereal
.
And no, adding it to .gitignore
won't help because ethereal
has to be in the project repository.
The commit clutter becomes a real problem.
The only solution I found is typing git update-index --assume-unchanged ethereal
before every commit.
But I read here that you are not supposed to do that often. Now imagine that there are 20 files like that.
There's gotta be a better way of dealing with this.