Skip to content

Commit

Permalink
Merge pull request #2940 from effigies/enh/annex-phenotype-data
Browse files Browse the repository at this point in the history
feat(dataset): Annex TSV files in phenotype directory
  • Loading branch information
nellh authored Nov 19, 2023
2 parents 601f3bb + 6b333c8 commit d239e8d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ OpenNeuro validates the size of regular git (non-annexed) files and a subset of
A recommended `.gitattributes` configuration for git-annex to automate annexing the correct files when using `git add` or `datalad save`

```
* annex.largefiles=largerthan=1mb
* annex.backend=SHA256E
**/.git* annex.largefiles=nothing
*.bval annex.largefiles=nothing
*.bvec annex.largefiles=nothing
*.json annex.largefiles=nothing
*.tsv annex.largefiles=nothing
*.json annex.largefiles=largerthan=1mb
phenotype/*.tsv annex.largefiles=anything
*.tsv annex.largefiles=largerthan=1mb
dataset_description.json annex.largefiles=nothing
.bidsignore annex.largefiles=nothing
CHANGES annex.largefiles=nothing
README annex.largefiles=nothing
README* annex.largefiles=nothing
LICENSE annex.largefiles=nothing
```

## Credential Helper
Expand Down
1 change: 1 addition & 0 deletions services/datalad/datalad_service/tasks/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*.bval annex.largefiles=nothing
*.bvec annex.largefiles=nothing
*.json annex.largefiles=largerthan=1mb
phenotype/*.tsv annex.largefiles=anything
*.tsv annex.largefiles=largerthan=1mb
dataset_description.json annex.largefiles=nothing
.bidsignore annex.largefiles=nothing
Expand Down
1 change: 1 addition & 0 deletions services/datalad/hooks/pre-receive
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ readonly GIT_ATTRIBUTES="* annex.backend=SHA256E
*.bval annex.largefiles=nothing
*.bvec annex.largefiles=nothing
*.json annex.largefiles=largerthan=1mb
phenotype/*.tsv annex.largefiles=anything
*.tsv annex.largefiles=largerthan=1mb
dataset_description.json annex.largefiles=nothing
.bidsignore annex.largefiles=nothing
Expand Down

0 comments on commit d239e8d

Please sign in to comment.