So, there are several things to tease apart here:
- how do you commit changes to a different branch/thread
- what is the primary use for switch
- whats the best default.
I'll support a --require-clean mode on switch or something, to say 'dont switch if there are conflicts', but defaulting to that seems really weird - pull itself can conflict when a directory is deleted and there are pyc files left behind; forcing switch to break when that happens would just annoy me :)
So, there are several things to tease apart here:
- how do you commit changes to a different branch/thread
- what is the primary use for switch
- whats the best default.
I'll support a --require-clean mode on switch or something, to say 'dont switch if there are conflicts', but defaulting to that seems really weird - pull itself can conflict when a directory is deleted and there are pyc files left behind; forcing switch to break when that happens would just annoy me :)