It makes sense sometime, but not always. Group commits by files.
For example,
Most of one core change is in multiple files, it will be very bad to commit by files group
For example,
Most of one core change is in multiple files, it will be very bad to commit by files group