From 6f98b23bf1dbb4336cae99e91383ba9407b317d2 Mon Sep 17 00:00:00 2001 From: pat Date: Tue, 6 Jul 2021 19:13:17 +0000 Subject: [PATCH] Added a comment --- ..._93f3bc4f8e9e2aeef4e417bba2041ee4._comment | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 doc/forum/How_to_see_what_will_go_to_annex_vs_git/comment_3_93f3bc4f8e9e2aeef4e417bba2041ee4._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* +``` +"""]]