git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Inconsistent error message with git checkout

From
CDChris DeCarolis <chris@elementl.com>
Date
Aug 20, 2020, 18:27 UTC
Message-ID
<CAMs-bDiFmD3=rWVc33oD-rUYWfawAjeqtbgsfoYzq9cav9UCsQ@mail.gmail.com>
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

Message 1 of 1 in “Inconsistent error message with git checkout”
  1. Chris DeCarolisAug 20, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.