scm char for cases of git rebase with conflicts

i have patched the scm_char function to use __gitdir to handle the cases of git rebase with conflicts, please share your views on it.