From 5479e2327bf8fa6b8dc9719fbbb21c7c923abde7 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 22 Sep 2023 12:36:15 -0400 Subject: [PATCH] comment --- ..._7a6ab3ee25f0d09df4d7478d26ea2d37._comment | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 doc/bugs/sync_-C_can_export_other_files/comment_1_7a6ab3ee25f0d09df4d7478d26ea2d37._comment diff --git a/doc/bugs/sync_-C_can_export_other_files/comment_1_7a6ab3ee25f0d09df4d7478d26ea2d37._comment b/doc/bugs/sync_-C_can_export_other_files/comment_1_7a6ab3ee25f0d09df4d7478d26ea2d37._comment new file mode 100644 index 0000000000..03193f7e13 --- /dev/null +++ b/doc/bugs/sync_-C_can_export_other_files/comment_1_7a6ab3ee25f0d09df4d7478d26ea2d37._comment @@ -0,0 +1,30 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2023-09-22T16:26:17Z" + content=""" +If files foo and bar have changed, and `git-annex sync -Cfoo` committed +those changes and only exported foo to an exporttree remote, then that +remote would end up with content that does not correspond to any git tree +that the user has constructed. + +While it's possible for that to also happen when an export of a tree gets +interrupted in the middle, git-annex recovers from that when the export is +re-run. But here the user might have a workflow where they are only running +that command. + +So this would be a new case, and to handle this case it seems it would have +to dummy up a tree representing the changed foo and old bar, in order to +record the export in the git-annex branch and sync it so other repos know +what the content of the export remote is. + +So doing that is not feeling like an entirely good idea.. + +I suppose the alternative would be for `git-annex sync -C` to not send +anything to export remotes. But that also seems potentially confusing. +(Especially as a behavior change.) If I've asked git-annex to sync with an +exporttree remote, shouldn't it do it? Even if it has to do some additional +transferring in the process. + +So it may be that the current behavior of sending additional files is better. +"""]]