From 962f1f2363b4746e0c5594662ff94b930abeef23 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 30 Jan 2020 12:54:15 -0400 Subject: [PATCH] mention limitation of --known --- doc/git-annex-reinject.mdwn | 9 +++++++-- ...ld_not_fail_when_the_file_extension_is_different.mdwn | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/git-annex-reinject.mdwn b/doc/git-annex-reinject.mdwn index e280a129bd..cd91226c62 100644 --- a/doc/git-annex-reinject.mdwn +++ b/doc/git-annex-reinject.mdwn @@ -36,8 +36,13 @@ needing to specify the dest file. With this option, each specified src file is hashed using the default key-value backend (or the one specified with `--backend`), and if git-annex - has a record of the file having been in the annex before, the content is - reinjected. + has a record of the resulting key having been in the annex before, the + content is reinjected. + + Note that, when using a key-value backend that includes the filename + extension in the key, this will only work if the src files have the same + extensions as the files with the same content that was originally added + to git-annex. Note that this will reinject old versions of files that have been modified or deleted from the current git branch. diff --git a/doc/todo/git-annex-reinject_--known_should_not_fail_when_the_file_extension_is_different.mdwn b/doc/todo/git-annex-reinject_--known_should_not_fail_when_the_file_extension_is_different.mdwn index c84177fe59..e0fbed78d0 100644 --- a/doc/todo/git-annex-reinject_--known_should_not_fail_when_the_file_extension_is_different.mdwn +++ b/doc/todo/git-annex-reinject_--known_should_not_fail_when_the_file_extension_is_different.mdwn @@ -5,3 +5,5 @@ I think it would be better if `git annex reinject --known` would ignore the file This problem does not affect `git annex reinject` without `--known`. --spwhitton + +> mentioned this on the git-annex reinject man page; [[done]] --[[Joey]]