From b1adf9fce800c5a67cd2f3418ae2e416c571e287 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 26 Sep 2017 15:20:18 -0400 Subject: thought --- ...ment_3_10d6135ad4b0c9706ff7b932323118d3._comment | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 doc/bugs/set_metadata_leaks_from_one___40__staged__41___key_to_another_during_rename_of_file/comment_3_10d6135ad4b0c9706ff7b932323118d3._comment (limited to 'doc/bugs/set_metadata_leaks_from_one___40__staged__41___key_to_another_during_rename_of_file') diff --git a/doc/bugs/set_metadata_leaks_from_one___40__staged__41___key_to_another_during_rename_of_file/comment_3_10d6135ad4b0c9706ff7b932323118d3._comment b/doc/bugs/set_metadata_leaks_from_one___40__staged__41___key_to_another_during_rename_of_file/comment_3_10d6135ad4b0c9706ff7b932323118d3._comment new file mode 100644 index 000000000..26d2ff01f --- /dev/null +++ b/doc/bugs/set_metadata_leaks_from_one___40__staged__41___key_to_another_during_rename_of_file/comment_3_10d6135ad4b0c9706ff7b932323118d3._comment @@ -0,0 +1,21 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 3""" + date="2017-09-26T19:16:29Z" + content=""" +Hmm, if the file was not already in the index, that could be taken to +indicate it was deleted/moved and replaced, rather than being modified, +and so don't copy the metadata. + +But that would make these two sequences have different behavior: + + git rm file; echo foo > file; git annex add file + + echo foo > file; git annex add file + +As well as these two sequences: + + git mv file other; echo foo > file; git annex add file + + cp file other; echo foo > file; git annex add file other +"""]] -- cgit v1.2.3