replace cat_file() with Repo.git.cat_file()
replace change_head_branch() with Repo().git.symbolic_ref()
replace has_*_changes() with Repo().is_dirty()

+ removed has_uncommited_changes()
+ removed has_unstaged_changes()
+ removed command_exitcode_only()