Check merge status in githook

Constant imagesnapping while attempting a rebase can really get in the way.