From: username Date: Mon, 18 Oct 2021 19:54:29 +0000 (+0000) Subject: Added a comment X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~79^2~122^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0c216a7cb8535a90801f378dedb9374b77e38b26;p=git-annex.git Added a comment --- diff --git a/doc/forum/Managing_a_large_number_of_files_archived_on_many_pieces_of_read-only_medium___40__E.G._DVDs__41__/comment_18_679ad639cbba7f9a4d28131219d20178._comment b/doc/forum/Managing_a_large_number_of_files_archived_on_many_pieces_of_read-only_medium___40__E.G._DVDs__41__/comment_18_679ad639cbba7f9a4d28131219d20178._comment new file mode 100644 index 0000000000..fdf131035d --- /dev/null +++ b/doc/forum/Managing_a_large_number_of_files_archived_on_many_pieces_of_read-only_medium___40__E.G._DVDs__41__/comment_18_679ad639cbba7f9a4d28131219d20178._comment @@ -0,0 +1,25 @@ +[[!comment format=mdwn + username="username" + avatar="http://cdn.libravatar.org/avatar/3c17ce77d299219a458fc2eff973239a" + subject="comment 18" + date="2021-10-18T19:54:29Z" + content=""" +I wasn't clear enough, or maybe I did something wrong when testing the directory special remote. + +When using standard git-annex repositories for everything as explained in comment 14 I get this: + +``` +$ git log --graph --oneline +* 5555555555 (HEAD -> master) amended commit 2 +|\ +| * 4444444444 (DVD1) DVD1 +* 3333333333 amended commit 1 +|\ +| * 2222222222 (CD1) CD1 +* 1111111111 init +``` + +The master branch tracks only the contents of my local HDD (note that in step 4 I edit the working directory to my liking and amend the automatic ```git-annex sync``` commit), and the CD1 branch contains only what's in that disc and nothing else, such that ```git checkout 2222222222``` or ```git checkout CD1``` replaces everything in the working directory with the contents of CD1, similar to mounting the physical disc and browsing its filesystem. + +Using the directory special remote, the contents of my master branch are combined with the contents of the special remote, so the same ```git checkout CD1``` command wouldn't replicate exactly what's on CD1, the master branch directory tree would still be present after the branch switch. +"""]]