Fixed issue #2114: Rebase touches lots of working dir files

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>