Given the case I made two independent changes in one file: eg. added a new method and changed another method.
I often don\'t want to commit
I used to do this:
This is a simplistic approach that assumes one set of changes is reasonably easy to undo. For more complex situations, I would give up and commit both changes without worrying about it.
Now that I use git, this is something I hope I'll never have to do again!