Detect repository states according to post Git 1.5