From d4d0951c073c453ab42d1deae38bbd39da26646b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 16 Jun 2020 14:25:51 -0400 Subject: [PATCH] followup and break out todo item to prioritize --- ...ment_1_0486a067491456d92220ca638e3095bf._comment | 13 +++++++++++++ doc/todo/import_tree.mdwn | 1 + .../import_tree_should_honor_annex.largefiles.mdwn | 13 +++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 doc/forum/Mixed_content_repos_with_import_and_export/comment_1_0486a067491456d92220ca638e3095bf._comment create mode 100644 doc/todo/import_tree_should_honor_annex.largefiles.mdwn diff --git a/doc/forum/Mixed_content_repos_with_import_and_export/comment_1_0486a067491456d92220ca638e3095bf._comment b/doc/forum/Mixed_content_repos_with_import_and_export/comment_1_0486a067491456d92220ca638e3095bf._comment new file mode 100644 index 0000000000..54ccaf060e --- /dev/null +++ b/doc/forum/Mixed_content_repos_with_import_and_export/comment_1_0486a067491456d92220ca638e3095bf._comment @@ -0,0 +1,13 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2020-06-16T18:17:19Z" + content=""" +This is one of the still open items in [[todo/import_tree]], +namely "Need to support annex.largefiles when importing" + +I don't think there's any major issue implementing it, other than it being +a bit of bother due to things like matching on mime type. I've lifted that +todo out to [[todo/import_tree_should_honor_annex.largefiles]] so hopefully +it'll be more of an action item on my todo list rather than buried away. +"""]] diff --git a/doc/todo/import_tree.mdwn b/doc/todo/import_tree.mdwn index 923cb3e08a..101463161c 100644 --- a/doc/todo/import_tree.mdwn +++ b/doc/todo/import_tree.mdwn @@ -51,6 +51,7 @@ and `git annex sync --content` can be configured to use it. would thus benefit both uses cases. * Need to support annex.largefiles when importing. + [[todo/import_tree_should_honor_annex.largefiles]] * If a tree containing a non-annexed file is exported, and then an import is done from the remote, the new tree will have that diff --git a/doc/todo/import_tree_should_honor_annex.largefiles.mdwn b/doc/todo/import_tree_should_honor_annex.largefiles.mdwn new file mode 100644 index 0000000000..011898c905 --- /dev/null +++ b/doc/todo/import_tree_should_honor_annex.largefiles.mdwn @@ -0,0 +1,13 @@ +Need to support annex.largefiles when importing a tree from a special +remote. + +Note that the legacy `git annex import` from a directory does honor +annex.largefiles. + +The tricky bit might be that the largefiles matcher will need to run on +the temporary annex key that's used to import, before calculating the real +annex key; there's no corresponding file in the working tree. Also, +a "branch:subdir" at the command line or in +remote.name.annex-tracking-branch can change the path +that the file is being imported to, which needs to be communicated to the +largefiles matcher.