Add a way to skip the git hooks via an environment variable
authorChris Dickens <christopher.a.dickens@gmail.com>
Fri, 17 Apr 2020 00:10:39 +0000 (17:10 -0700)
committerChris Dickens <christopher.a.dickens@gmail.com>
Fri, 17 Apr 2020 00:19:52 +0000 (17:19 -0700)
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
.private/post-rewrite.sh
.private/pre-commit.sh
libusb/version_nano.h
test [new file with mode: 0644]

index 0ac4847..60ec3e4 100755 (executable)
 # derivative branch, such as one you would create for private development.
 #
 
+if [ -n "$LIBUSB_SKIP_NANO" ]; then
+  exit 0
+fi
+
 case "$1" in
   amend)
     # Check if a .amend exists. If none, create one and warn user to re-commit.
index 346d48a..48328f8 100755 (executable)
 BRANCH_OFFSET=10000
 ################################################################################
 
+if [ -n "$LIBUSB_SKIP_NANO" ]; then
+  exit 0
+fi
+
 if [ "$BASH_VERSION" = '' ]; then
   TYPE_CMD="type git >/dev/null 2>&1"
 else
index 459f6be..383d63e 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11497
+#define LIBUSB_NANO 11498
diff --git a/test b/test
new file mode 100644 (file)
index 0000000..e69de29