#!/bin/bash
# $1 = Previous HEAD, $2 = New HEAD, $3 = Flag (1=Branch checkout)

# Only run on branch switches
if [ "$3" != "1" ]; then exit 0; fi

# Delegate to Rust binary
gherrit hook post-checkout "$1" "$2" "$3"
exit $?
