summaryrefslogtreecommitdiff
path: root/Omni/Ide/hooks/reference-transaction
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Ide/hooks/reference-transaction')
-rwxr-xr-xOmni/Ide/hooks/reference-transaction12
1 files changed, 12 insertions, 0 deletions
diff --git a/Omni/Ide/hooks/reference-transaction b/Omni/Ide/hooks/reference-transaction
new file mode 100755
index 0000000..ea0cce6
--- /dev/null
+++ b/Omni/Ide/hooks/reference-transaction
@@ -0,0 +1,12 @@
+#!/bin/sh
+## START BRANCHLESS CONFIG
+
+# Avoid canceling the reference transaction in the case that `branchless` fails
+# for whatever reason.
+git branchless hook reference-transaction "$@" || (
+echo 'branchless: Failed to process reference transaction!'
+echo 'branchless: Some events (e.g. branch updates) may have been lost.'
+echo 'branchless: This is a bug. Please report it.'
+)
+
+## END BRANCHLESS CONFIG