From 780edebf2e7d65c1fef3bf74b755e597c0a5fd2c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 5 Feb 2013 14:05:24 -0400 Subject: [PATCH] bug --- doc/bugs/direct_mode_renames.mdwn | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 doc/bugs/direct_mode_renames.mdwn diff --git a/doc/bugs/direct_mode_renames.mdwn b/doc/bugs/direct_mode_renames.mdwn new file mode 100644 index 0000000000..788c615dcd --- /dev/null +++ b/doc/bugs/direct_mode_renames.mdwn @@ -0,0 +1,10 @@ +When in direct mode, renaming a file with `git mv` does not update the +direct mode mapping to use the new filename. This can lead to unexpected +behavior later. `fsck` will correct the mapping. --[[Joey]] + +Perhaps the pre-commit hook needs to update the mapping for files that were +deleted or added. This would allow manual `git mv` (and `git rm`) to work. + +This also affects moves of files when the assistant is being used. +In this case, the assistant updates the mapping to add the new name, +but does not delete the old name from the mapping.