From: pat Date: Tue, 6 Jul 2021 19:13:17 +0000 (+0000) Subject: Added a comment X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~91^2~128 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6f98b23bf1dbb4336cae99e91383ba9407b317d2;p=git-annex.git Added a comment --- diff --git a/doc/forum/How_to_see_what_will_go_to_annex_vs_git/comment_3_93f3bc4f8e9e2aeef4e417bba2041ee4._comment b/doc/forum/How_to_see_what_will_go_to_annex_vs_git/comment_3_93f3bc4f8e9e2aeef4e417bba2041ee4._comment new file mode 100644 index 0000000000..44d56ab6e9 --- /dev/null +++ b/doc/forum/How_to_see_what_will_go_to_annex_vs_git/comment_3_93f3bc4f8e9e2aeef4e417bba2041ee4._comment @@ -0,0 +1,24 @@ +[[!comment format=mdwn + username="pat" + avatar="http://cdn.libravatar.org/avatar/6b552550673a6a6df3b33364076f8ea8" + subject="comment 3" + date="2021-07-06T19:13:17Z" + content=""" +`git annex add --dry-run` is actually the first thing I tried :) + +I came across `git-annex-matchexpression` and was able to put together [this script](https://gist.github.com/patmaddox/61ddf773f7b65bd2b42cee7f4e5e574d) that neatly shows me what untracked files will go where: + +``` +% ./bin/whereto.rb +files to annex: + - projects/chicken/hello.wav + +files to git: + - bin/whereto.rb + - projects/chicken/bar + - projects/chicken/foo + +annex.largefiles: + include=*.dorico or include=*.mp3 or include=*.pdf or include=*.mxl or include=*.mscz or include=*.xml or include=*.RPP or include=*.wav or include=*.aif* +``` +"""]]