threads / discuss / 54075

Inconsistent error message with git checkout

Subject: Inconsistent error message with git checkout

## tl;dr

One message between Aug 20, 2020 and Aug 20, 2020.

replies: 0people: 1as markdown or json

Chris DeCarolis· Aug 20, 2020, 18:27 UTC · lore
Hello,

I hope all is well. I wanted to send this email to report a possible inconsistency with the error message displayed by git checkout under certain conditions.

When I try to switch branches using git checkout, and switching is disallowed due to uncommitted changes, the error message will tell me the absolute path of the files causing the issue rather than the relative path. This seems to be a bit inconsistent, as calling git status, for example, will display relative paths. Since this only occurs when barred from actually switching branches, it seems displaying the relative path would be a better option here.

I'd love to know your thoughts as to whether changing this behavior is worthwhile or not.

Best, Chris

← back to recent threads