Only display working directory entry if there are changes

When there was no working directory changes then the first entry should be
an actual commit.
Small refactor of paintGraph

Use some beter variable names