Fill out phlgit to support testing abdt_branch

Exercise the 'make_raw_diff' and 'has_new_commits' methods of
abdt_branch in the test driver.

Fill out necessary supporting methods in phlgit.

Test Plan: $ ./precommit.sh