summaryrefslogtreecommitdiff
path: root/doc/bugs/set_metadata_leaks_from_one___40__staged__41___key_to_another_during_rename_o...
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-09-26 15:20:18 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-09-26 15:20:18 -0400
commitb1adf9fce800c5a67cd2f3418ae2e416c571e287 (patch)
tree519673011bcc68e36355aeeff80b06c62d2f0be2 /doc/bugs/set_metadata_leaks_from_one___40__staged__41___key_to_another_during_rename_of_file
parent526d8a0ddf699645de8b561d57679a86657718a4 (diff)
thought
Diffstat (limited to 'doc/bugs/set_metadata_leaks_from_one___40__staged__41___key_to_another_during_rename_of_file')
-rw-r--r--doc/bugs/set_metadata_leaks_from_one___40__staged__41___key_to_another_during_rename_of_file/comment_3_10d6135ad4b0c9706ff7b932323118d3._comment21
1 files changed, 21 insertions, 0 deletions
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
+"""]]