gh-6: add tests
gitk: fix ignorespace

handle pending in the end of file