nfdi4plants / ARCCommander

Tool to manage your ARCs
MIT License
11 stars 9 forks source link

Add `--nolfs` flag to `arc get` #158

Closed HLWeil closed 1 year ago

HLWeil commented 1 year ago

Add --nolfs flag to arc get

By using the --nolfs (-n) flag, arc get will now download only the non lfs file contents when cloning an arc. This is practival for users who are only interested in the metadata.

Usage:

arc get -r https://git.nfdi4plants.org/brilator/samplearc_rnaseq -n

afterwards lfs file content can be updated using

git lfs pull

106

Brilator commented 1 year ago

Will this also affect arc sync behavior on the cloned arc afterwards? So that during sync lfs objects are still ignored (maybe with a notification to the user)?

HLWeil commented 1 year ago

Syncing works just like before. If the file content is not touched (i.e. the lfs pointer is left as is), the file does not get included in the commit. If you change the file (i.e. write something into it which is not the lfs pointer), the file will now be commited and pushed using lfs.