[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 6739080b9c 3/7: Meta: Track pre-commit hook to
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 6739080b9c 3/7: Meta: Track pre-commit hook to build the manual |
Date: |
Thu, 19 Oct 2023 22:00:33 -0400 (EDT) |
branch: elpa/hyperdrive
commit 6739080b9cbae8943dfaf7be616b7785c4ba6920
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Meta: Track pre-commit hook to build the manual
It is necessary to check git status since we only want to stage
hyperdrive.texi when hyperdrive.org is also staged. If instead we
relied on GNU Make's built-in timestamp comparison, `git add
doc/hyperdrive.texi` would run when doc/hyperdrive.org is modified in
the worktree but not among the files staged for commit.
---
tracked-hooks/pre-commit | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tracked-hooks/pre-commit b/tracked-hooks/pre-commit
new file mode 100755
index 0000000000..cea9539c16
--- /dev/null
+++ b/tracked-hooks/pre-commit
@@ -0,0 +1,5 @@
+#!/bin/sh
+git status -s | \
+ grep '^M doc/hyperdrive.org$' > /dev/null && \
+ make doc && \
+ git add doc/hyperdrive.texi
- [nongnu] elpa/hyperdrive updated (a6a7cf2cd0 -> 027fbd0a7a), ELPA Syncer, 2023/10/19
- [nongnu] elpa/hyperdrive 19c36e3086 4/7: Meta: Move Makefile to top-level directory, ELPA Syncer, 2023/10/19
- [nongnu] elpa/hyperdrive 8186daebe6 1/7: Change: Rename info node from hyperdrive-manual to hyperdrive, ELPA Syncer, 2023/10/19
- [nongnu] elpa/hyperdrive 15750c1053 2/7: Meta: (doc/Makefile) Add default goal and rule, ELPA Syncer, 2023/10/19
- [nongnu] elpa/hyperdrive 6739080b9c 3/7: Meta: Track pre-commit hook to build the manual,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 13f4a2af90 5/7: Fix: (tracked-hooks/pre-commit), ELPA Syncer, 2023/10/19
- [nongnu] elpa/hyperdrive 88c9e0fe85 6/7: Fix: (tracked-hooks/pre-commit) Only export .texi if .org is staged, ELPA Syncer, 2023/10/19
- [nongnu] elpa/hyperdrive 027fbd0a7a 7/7: Meta: (CONTRIBUTING.org) Document git hooks, ELPA Syncer, 2023/10/19