[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/logview 8ff518328f 172/259: Add a simplistic but useful Gi
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/logview 8ff518328f 172/259: Add a simplistic but useful Git hook. |
Date: |
Fri, 31 Jan 2025 07:02:09 -0500 (EST) |
branch: elpa/logview
commit 8ff518328fd064b15a67c6d92bbb17b89fa1419e
Author: Paul Pogonyshev <pogonyshev@gmail.com>
Commit: Paul Pogonyshev <pogonyshev@gmail.com>
Add a simplistic but useful Git hook.
---
githooks/pre-commit | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/githooks/pre-commit b/githooks/pre-commit
new file mode 100755
index 0000000000..3efc31e9e5
--- /dev/null
+++ b/githooks/pre-commit
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# This can be used in a comment as a reminder to self.
+git diff-index --cached -S "DONOTCOMMIT" HEAD --patch --exit-code ":!githooks"
\
+ || { echo; echo "Have you forgotten about the “DONOTCOMMIT”?"; exit 1; }
+
+# Eldev functions can be used during development, but must not be committed.
+git diff-index --cached -S "eldev-" HEAD --patch --exit-code ":!githooks"
":!Eldev" \
+ || { echo; echo "Don't commit code relying on Eldev!"; exit 1; }
- [nongnu] elpa/logview 12bf9718de 223/259: fix: Better compatibility to select log file, (continued)
- [nongnu] elpa/logview 12bf9718de 223/259: fix: Better compatibility to select log file, ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 49cca08b84 233/259: Handle errors in mode initialization in such a way as to never leave it in half-initialized state (related to issue #55)., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 56591f85ea 235/259: Release logview 0.17.4, ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 5397a572e3 230/259: And fix a mindo in commit a9e8b48., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview e8affa679a 240/259: Add command `logview-prepare-for-new-contents`., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 588ad7a9d5 225/259: Release logview 0.17.2, ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 50f0b12f9c 253/259: Release logview 0.19, ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 0db778bb0c 249/259: Be less strict to submode definition (issue #57)., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 88701f50c0 082/259: Make sure several commands with optional `n' argument work when invoked without it non-interactively too., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 8b03173975 062/259: Bump version because of major new features., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 8ff518328f 172/259: Add a simplistic but useful Git hook.,
ELPA Syncer <=
- [nongnu] elpa/logview 0b299c11f9 156/259: Make byte-compiler in Emacs master happy., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 9125188b0b 189/259: Release logview 0.16.3, ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 7d89613a29 186/259: Post-release version bump., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 93ac690222 194/259: Enable Dependabot., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 0a266c1c7f 226/259: Post-release version bump., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 749255d160 238/259: Add command to replace timestamps with differences to corresponding section header., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview b4653af5a6 252/259: Document the changes since 0.18., ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 0f957d4b87 242/259: Release logview 0.18, ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 9ce423a9fc 258/259: Release logview 0.19.1, ELPA Syncer, 2025/01/31
- [nongnu] elpa/logview 5ec014cb78 255/259: Replace certain homegrown compatibility code with usage of package `compat` to hopefully avoid some bugs on older Emacs versions (issue #58)., ELPA Syncer, 2025/01/31