git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris DeCarolis <chris@elementl.com>
To: git@vger.kernel.org
Subject: Inconsistent error message with git checkout
Date: Thu, 20 Aug 2020 14:27:34 -0400	[thread overview]
Message-ID: <CAMs-bDiFmD3=rWVc33oD-rUYWfawAjeqtbgsfoYzq9cav9UCsQ@mail.gmail.com> (raw)

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

                 reply	other threads:[~2020-08-20 18:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMs-bDiFmD3=rWVc33oD-rUYWfawAjeqtbgsfoYzq9cav9UCsQ@mail.gmail.com' \
    --to=chris@elementl.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).