Thread (17 messages) flat view 17 messages, 7 authors, 2018-12-14

Re: [PATCH 1/1] worktree refs: fix case sensitivity for 'head'

From: brian m. carlson <hidden>
Date: 2018-12-14 00:33:59

On Thu, Dec 13, 2018 at 04:14:28PM -0500, Mike Rappazzo wrote:
On Thu, Dec 13, 2018 at 3:48 PM Stefan Beller [off-list ref] wrote:
quoted
quoted
quoted
The current situation is definitely a problem.  If I am in a worktree,
using "head" should be the same as "HEAD".
By any chance, is your file system case insensitive?
That is usually the source of confusion for these discussions.
This behavior is the same for MacOS (High Sierra) and Windows 7.  I
assume other derivatives of those act the same.

On CentOS "head" is an ambiguous ref.  If Windows and Mac resulted in
an ambiguous ref, that would also be OK, but as it is now, they return
the result of "HEAD" on the primary worktree.
I'm pretty sure that we want HEAD to be only written as "HEAD". It's
known that systems with case-insensitive file systems sometimes allow
"head" instead of "HEAD" because the ref is written in the file system.

I think the improvement we'd want here is to reject HEAD being written
as "head" on those systems, but in a global way that affects all uses of
HEAD.
-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help