-
Notifications
You must be signed in to change notification settings - Fork 143
git-mv: improve error message for conflicted file #678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
08d8bdc
to
0b617e7
Compare
/preview |
Preview email sent as pull.678.git.1595011316683.gitgitgadget@gmail.com |
/submit |
Submitted as pull.678.git.1595028293855.gitgitgadget@gmail.com |
On the Git mailing list, Eric Sunshine wrote (reply to this):
|
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
On the Git mailing list, Chris Torek wrote (reply to this):
|
On the Git mailing list, Elijah Newren wrote (reply to this):
|
On the Git mailing list, Eric Sunshine wrote (reply to this):
|
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
On the Git mailing list, Elijah Newren wrote (reply to this):
|
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
'git mv' has always complained about renaming a conflicted file, as it cannot handle multiple index entries for one file. However, the error message it uses has been the same as the one for an untracked file: fatal: not under version control, src=... which is patently wrong. Distinguish the two cases and add a test to make sure we produce the correct message. Signed-off-by: Chris Torek <chris.torek@gmail.com>
0b617e7
to
f2e251a
Compare
/preview |
Preview email sent as pull.678.v2.git.1595225517467.gitgitgadget@gmail.com |
/submit |
Submitted as pull.678.v2.git.1595225873014.gitgitgadget@gmail.com |
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
This branch is now known as |
This patch series was integrated into seen via git@1ea2db0. |
This patch series was integrated into seen via git@5a94ab7. |
This patch series was integrated into seen via git@d6c04fd. |
This patch series was integrated into next via git@c170072. |
This patch series was integrated into seen via git@d8f7f11. |
This patch series was integrated into seen via git@6c8c4f7. |
This patch series was integrated into seen via git@7b766d9. |
This patch series was integrated into seen via git@819913f. |
A new hook. * ps/ref-transaction-hook: githooks.txt: use correct "reference-transaction" hook name
This patch series was integrated into seen via git@6568652. |
This patch series was integrated into seen via git@7f63d06. |
This patch series was integrated into seen via git@be2dab9. |
This patch series was integrated into next via git@be2dab9. |
This patch series was integrated into master via git@be2dab9. |
Closed via be2dab9. |
'git mv' has always complained about renaming a conflicted
file, as it cannot handle multiple index entries for one file.
However, the error message it uses has been the same as the
one for an untracked file:
which is patently wrong. Distinguish the two cases and
add a test to make sure we produce the correct message.
Signed-off-by: Chris Torek chris.torek@gmail.com
Tests updated, and took Junio's suggestion to reduce
the cache lookup to one call.
I put in the shortened "conflicted" here but did not shorten
the existing "not under version control" message (to
minimize the visible and translations-required changes).
I like the idea of renaming all stages and keeping them
at their current stages, but that's too much for this patch.
I'll be traveling next week and not sure if I will get to
any followups for a while.