Rename hooks to standard git hook names
- Rename post-commit-ots → post-commit - Rename pre-commit-ots → pre-commit - Remove legacy post-commit and pre-commit symlinks - Update install.sh and documentation - Simplified: only 2 hook files with standard names Hooks are now named exactly as git expects them, making manual installation more intuitive.
This commit is contained in:
parent
b4e2eb3c12
commit
948e7d9d70
8 changed files with 44 additions and 291 deletions
|
|
@ -31,8 +31,8 @@ git commit -m "Add OpenTimestamp proofs for commit history"
|
|||
## Manual Installation
|
||||
|
||||
```bash
|
||||
cp hooks/post-commit-ots .git/hooks/post-commit
|
||||
cp hooks/pre-commit-ots .git/hooks/pre-commit
|
||||
cp hooks/post-commit .git/hooks/post-commit
|
||||
cp hooks/pre-commit .git/hooks/pre-commit
|
||||
chmod +x .git/hooks/post-commit .git/hooks/pre-commit
|
||||
```
|
||||
|
||||
|
|
@ -45,8 +45,8 @@ chmod +x .git/hooks/post-commit .git/hooks/pre-commit
|
|||
|
||||
| File | Purpose | Version? |
|
||||
|------|---------|----------|
|
||||
| `hooks/post-commit-ots` | Post-commit hook | Yes |
|
||||
| `hooks/pre-commit-ots` | Backfill hook | Yes |
|
||||
| `hooks/post-commit` | Post-commit hook | Yes |
|
||||
| `hooks/pre-commit` | Backfill hook | Yes |
|
||||
| `hooks/install.sh` | Installer (checks ots) | Yes |
|
||||
| `.ots/*.ots` | Individual proofs | Yes |
|
||||
| `.ots/proof.ots` | Latest proof reference | Yes |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue