Dontopedia

post-commit

From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-06-10.)

post-commit has 29 facts recorded in Dontopedia across 2 references, with 2 live disagreements.

29 facts·24 predicates·2 sources·2 in dispute

Mostly:executes command(4), rdf:type(2), located in(1)

Maturity scale raw canonical shape-checked rule-derived certified

Inbound mentions (13)

Other subjects in dontopedia point AT this entity as a value. These are inverse relationships — e.g. "X motherOf this subject" — and answer questions the forward facts can't. Grouped by predicate.

partOfPart of(4)

containsContains(2)

createdByCreated by(2)

appliedToApplied to(1)

implementedByImplemented by(1)

providesExampleProvides Example(1)

targetFileTarget File(1)

triggersTriggers(1)

Other facts (28)

The long tail: predicates that appear too rarely to warrant their own section. Filter or scroll to find a specific one. Each row links to its source.

28 facts
PredicateValueRef
Executes CommandMkdir Command[1]
Executes CommandGit Rev Parse Command[1]
Executes CommandCp Command[1]
Executes CommandEcho Command[1]
Rdf:typeScript[1]
Rdf:typeScript[2]
Located inGit Hooks Directory[1]
Contains VariableBackup Dir Variable[1]
Has Shebang#!/bin/bash[1]
Script Typebash[1]
Triggered byGit Commit Event[1]
Script Languagebash[1]
Has Shebang Line#!/bin/bash[1]
Languagebash[2]
Purposebackup[2]
Creates DirectoryBackup Directory[2]
Command Usedmkdir -p[2]
Gets Commit HashLatest Commit Hash[2]
Command for Commit Hashgit rev-parse HEAD[2]
Copies FilesBackup Directory[2]
Copy Commandcp -r[2]
Backup File Name Patterncommit-hash-filepath[2]
Outputs MessageBackup created for commit[2]
Requires Executable Permissiontrue[2]
Chmod Commandchmod +x[2]
Locationmodel_repo/.git/hooks/post-commit[2]
Part ofGit Hooks[2]
Uses LoopFor Loop[2]

Timeline

Timeline axis is valid_time — when each source says the fact was true in the world, not when Dontopedia learned about it. Retracted rows are kept for provenance; coloured stripes indicate the context kind.

typebeam/e7b46c25-102e-4365-a394-571e682ce0b7
ex:Script
labelbeam/e7b46c25-102e-4365-a394-571e682ce0b7
post-commit
locatedInbeam/e7b46c25-102e-4365-a394-571e682ce0b7
ex:git-hooks-directory
containsVariablebeam/e7b46c25-102e-4365-a394-571e682ce0b7
ex:backup-dir-variable
executesCommandbeam/e7b46c25-102e-4365-a394-571e682ce0b7
ex:mkdir-command
executesCommandbeam/e7b46c25-102e-4365-a394-571e682ce0b7
ex:git-rev-parse-command
executesCommandbeam/e7b46c25-102e-4365-a394-571e682ce0b7
ex:cp-command
executesCommandbeam/e7b46c25-102e-4365-a394-571e682ce0b7
ex:echo-command
hasShebangbeam/e7b46c25-102e-4365-a394-571e682ce0b7
#!/bin/bash
scriptTypebeam/e7b46c25-102e-4365-a394-571e682ce0b7
bash
triggeredBybeam/e7b46c25-102e-4365-a394-571e682ce0b7
ex:git-commit-event
scriptLanguagebeam/e7b46c25-102e-4365-a394-571e682ce0b7
bash
hasShebangLinebeam/e7b46c25-102e-4365-a394-571e682ce0b7
#!/bin/bash
typebeam/774aa520-1c23-417d-bf36-f2810f799391
ex:Script
languagebeam/774aa520-1c23-417d-bf36-f2810f799391
bash
purposebeam/774aa520-1c23-417d-bf36-f2810f799391
backup
createsDirectorybeam/774aa520-1c23-417d-bf36-f2810f799391
ex:backup-directory
commandUsedbeam/774aa520-1c23-417d-bf36-f2810f799391
mkdir -p
getsCommitHashbeam/774aa520-1c23-417d-bf36-f2810f799391
ex:latest-commit-hash
commandForCommitHashbeam/774aa520-1c23-417d-bf36-f2810f799391
git rev-parse HEAD
copiesFilesbeam/774aa520-1c23-417d-bf36-f2810f799391
ex:backup-directory
copyCommandbeam/774aa520-1c23-417d-bf36-f2810f799391
cp -r
backupFileNamePatternbeam/774aa520-1c23-417d-bf36-f2810f799391
commit-hash-filepath
outputsMessagebeam/774aa520-1c23-417d-bf36-f2810f799391
Backup created for commit
requiresExecutablePermissionbeam/774aa520-1c23-417d-bf36-f2810f799391
true
chmodCommandbeam/774aa520-1c23-417d-bf36-f2810f799391
chmod +x
locationbeam/774aa520-1c23-417d-bf36-f2810f799391
model_repo/.git/hooks/post-commit
partOfbeam/774aa520-1c23-417d-bf36-f2810f799391
ex:git-hooks
usesLoopbeam/774aa520-1c23-417d-bf36-f2810f799391
ex:for-loop

References (2)

2 references
  1. ctx:claims/beam/e7b46c25-102e-4365-a394-571e682ce0b7
  2. ctx:claims/beam/774aa520-1c23-417d-bf36-f2810f799391
    • full textbeam-chunk
      text/plain1 KBdoc:beam/774aa520-1c23-417d-bf36-f2810f799391
      Show excerpt
      Here's an example of what the `post-commit` script might look like: ```bash #!/bin/bash # Define the backup directory BACKUP_DIR="project_backups" # Ensure the backup directory exists mkdir -p "$BACKUP_DIR" # Get the latest commit hash

See also

Keep researching

Missing something or suspicious of what's here? Kick off a research session — a Claude agent will investigate, cite its sources, and file new facts into a dedicated context you can review before accepting into the shared view.