by gcarvalho · 5y ago · 0 comments
A common mistake I have come across a few times (and seen others fall victim to as well) is forgetting to stage a file that's necessary for the new feature or fix they just committed.
Do you think that identifying these cases and suggesting to stage them is something in line with the project? (e.g. while trying to commit: "You imported file X in a file you staged, but it is currently being ignored, do you wish to stage it as well?")
We use a git hook for this currently and it's super useful.
Something like an IDE might be better suited for detecting these because it knows which symbols refer to where.