Please add tests for the individual functions, and tests that e.g. try out odd situations like deleted files, files that both have staged and unstaged changes, nested files.