Repository navigation
Exclude metadata files from git-annex largefiles - #281
Merged
Merged
Conversation
TSV, JSON, MD, txt, yml, and common BIDS root files (README, LICENSE, CHANGES, .bidsignore) are now explicitly excluded from annexing regardless of size. Previously, the largerthan=100kb rule could annex large TSV files, causing BIDS validation failures (nm000112 events.tsv stored as annex pointers). Tested with git annex matchexpression against all relevant file types.
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR281Version: 🤖 Updated on each push. |
- Fix: add missing extensions in restore script (fif, vhdr, eeg, cnt, fdt) - Refactor pattern into arrays for readability in git-annex.ts - Update stale patterns in .context/validated_workflows.md - Add cross-reference comment to restore script
Contributor
Author
PR Review FindingsRan code-reviewer, comment-analyzer, and code-simplifier agents in parallel. Critical (1)
Important (2)
Suggestions (3)
Strengths noted by reviewers
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
largefilespattern to explicitly exclude metadata files (.tsv,.json,.md,.txt,.yml,.yaml,README*,LICENSE*,CHANGES*,.bidsignore,.gitignore) from annexing regardless of sizelargerthan=100kbrule could annex large TSV files, causing BIDS validation failures (e.g., nm000112 events.tsv stored as annex pointers)*.tsv.gzis NOT excluded since it's compressed data that should be annexedsrc/lib/git-annex.ts,scripts/nemar-restore-dataset.sh,CLAUDE.md, and restoration guideContext
Test plan
git annex matchexpressionagainst:.tsv(excluded),.edf(annexed),.tsv.gz(annexed),.json(excluded),README.md(excluded)