I would like to modify the test for comment in some additional code:
- /*SimpleMonitor monitor = new SimpleMonitor();
- machine.attachMonitor(monitor);*/
+ SimpleMonitor monitor = new SimpleMonitor();
+ machine.attachMonitor(monitor);
That is, when I create locally, I would like to enable SimpleMonitor, but I always want the tested code to leave it in the comments. SimpleMonitor provides some detailed information about what is going on inside my test.
Of course, I just can't add this change to commit.
Is there a way with git that I can always rule out this change even when using 'git add.' or 'git add -A', etc., so that git skips this change?
The idea is that it is a delta that sits on top of a working copy. If there is some neat trick with an application or using a branch or something else, please tell me about it.
source
share