Why to commit/stash anyway? If a developer wants code to be fixed, then this also includes code he changed and haven't commited yet. Better to warn him (like `git rebase` does), that you have uncommited changes and `proceed on your own risk`.