BST-PRE-RECEIVE-HOOK(1)
π BST-PRE-RECEIVE-HOOK π
okay bestie, so this is a User Commands page for bst pre-receive-hook β yes, lowercase bst, she's casual like that. It's part of the bst manual family and honestly? she's a little niche but she serves. π
β¨ NAME β¨
bst pre-receive-hook β bestie's job is to validate filenames from a list of files against the BIDS schema. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
bst pre-receive-hook [OPTIONS]
π¦ DESCRIPTION π¦
so the input she's expecting? it looks exactly like this:
bids-hook-v2 {"Name": "My dataset", "BIDSVersion": "1.9.0",
DatasetType : "raw"} ignore-pattern1 ... ignore-patternN 0001
.datalad/config .gitattributes CHANGES README dataset_description.json
participants.tsv sub-01/anat/sub-01_T1w.nii.gz ...
the header is the thing that identifies the protocol version, periodt. and for protocol bids-hook-v2? the second line MUST be the dataset_description.json file, with any newlines removed. no newlines. none. not even one. π
then the lines after that, all the way up to the line containing β0001β, are the ignore patterns straight from the .bidsignore file. and everything after β0001β? those are the filenames that are getting validated. slay. π₯
this whole thing is intended to be used in a git pre-receive hook β that's her whole main character moment, iykyk.
π OPTIONS π
-s,--schemaPATH β the path to the BIDS schema π-i,--inputPATH β input file, and the default isstdinπ«Ά-o,--outputPATH β output file, and the default isstdoutβ¨-h,--helpβ show a help message and exit, iconic behaviour honestly π
π SEE ALSO π
and that's the whole page bestie, no notes. π this one's dated February 2026 and lives under BST-PRE-RECEIVE-HOOK(1) in the User Commands section β go forth and validate those filenames, you absolute legend ππ
π¦ where this page comes from
- fedora 43: python3-bidsschematools 1.2.7-1.fc43 Β· MIT
- fedora 44: python3-bidsschematools 1.2.1-1.fc44 Β· MIT
- fedora 44: python3-bidsschematools 1.2.7-1.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms