git-annex/doc/bugs/direct_mode_renames.mdwn

16 lines
669 B
Text
Raw Normal View History

2013-02-05 18:05:24 +00:00
When in direct mode, renaming a file with `git mv` does not update the
2013-02-05 21:45:53 +00:00
direct mode mapping to use the new filename. --[[Joey]]
Consistency checks now prevent anything bad happening when the mapping file
contains old filenames. Still, missing the new filename will prevent that
file working properly in direct mode.
2013-02-05 18:05:24 +00:00
Perhaps the pre-commit hook needs to update the mapping for files that were
2013-02-05 21:45:53 +00:00
deleted or added.
2013-02-05 18:05:24 +00:00
This also affects moves of files when the assistant is being used.
2013-02-05 18:05:24 +00:00
In this case, the assistant updates the mapping to add the new name,
but does not delete the old name from the mapping.
> [[done]]; the pre-commit hook now updates the mappings. --[[Joey]]