From: Nikola Milekic <nikolamilekic@gmail.com>
To: avarab@gmail.com
Cc: git@vger.kernel.org
Subject: Re: Differences between git show HEAD and git show head
Date: Mon, 17 Sep 2018 15:33:47 +0200 [thread overview]
Message-ID: <CACU07Yug+oiiKXa53W6f+mugLPdrXOHRRDbWVOpbwwKov4MiFA@mail.gmail.com> (raw)
In-Reply-To: <875zz4l0kv.fsf@evledraar.gmail.com>
Ups, my bad, didn't realize that. Apologies for spamming. Would love
to help but unfortunately I have no C background.
On Mon, Sep 17, 2018 at 3:23 PM Ævar Arnfjörð Bjarmason
<avarab@gmail.com> wrote:
>
>
> On Mon, Sep 17 2018, Nikola Milekic wrote:
>
> > Hi,
> >
> > On Windows, when using multiple workspaces and git 2.19.0.windows.1,
> > 'git show HEAD' and 'git show head' return different results when
> > executed from a secondary workspace (the one without the .git
> > directory).
> >
> > 'git show HEAD' shows the HEAD of the current workspace, while git
> > show head shows the HEAD of the main workspace (the one with the .git
> > directory). I find this to be highly misleading, especially for users
> > like myself who are not used to typing HEAD in all caps. Is this
> > indented behavior or a bug?
>
> This is an outstanding bug in git that's tricky to solve (maybe you're
> interested!), here's a recent discussion about it:
> https://public-inbox.org/git/87ziclb2pa.fsf@gmail.com/
prev parent reply other threads:[~2018-09-17 13:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-17 11:22 Differences between git show HEAD and git show head Nikola Milekic
2018-09-17 13:23 ` Ævar Arnfjörð Bjarmason
2018-09-17 13:33 ` Nikola Milekic [this message]
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=CACU07Yug+oiiKXa53W6f+mugLPdrXOHRRDbWVOpbwwKov4MiFA@mail.gmail.com \
--to=nikolamilekic@gmail.com \
--cc=avarab@gmail.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).