Add branch-independent hooks