die("Some files in your working directory are modified and different than what is in your index. You can use git update-index <filename> to bring the index up-to-date or stash away all your changes with git stash.");
iflen(read_pipe("git diff-index HEAD --"))>0:
die("You have uncommited changes. Please commit them before rebasing or stash them away with git stash.");
die("You have uncommitted changes. Please commit them before rebasing or stash them away with git stash.");