about summary refs log tree commit diff
path: root/pre-commit
diff options
context:
space:
mode:
authorgennyble <gen@nyble.dev>2023-08-24 21:49:51 -0500
committergennyble <gen@nyble.dev>2023-08-24 21:49:51 -0500
commita65355c1476d4815f0b28959fd2cd2f160dc4374 (patch)
tree8661b7ff3d8ba6053a11ed12230f37524850eefe /pre-commit
parent544aae00aa8d589a2b2817373611d21aa70eec0e (diff)
downloadwhenwasit-a65355c1476d4815f0b28959fd2cd2f160dc4374.tar.gz
whenwasit-a65355c1476d4815f0b28959fd2cd2f160dc4374.zip
add pre-commit example
Diffstat (limited to 'pre-commit')
-rwxr-xr-xpre-commit4
1 files changed, 4 insertions, 0 deletions
diff --git a/pre-commit b/pre-commit
new file mode 100755
index 0000000..2867963
--- /dev/null
+++ b/pre-commit
@@ -0,0 +1,4 @@
+#!/bin/bash
+# example of how it might be used in a git hook
+whenwasit --ignore .whenwasit-ignore . > .whenwasit
+git add .whenwasit
\ No newline at end of file