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

Re: What's cooking in git.git (Oct 2017, #07; Mon, 30)

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 31, 2017, 02:38 UTC
Message-ID
<xmqqy3ns2g9z.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<alpine.DEB.2.21.1.1710301827000.6482@virtualbox>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 17 quoted lines
> Hi Junio,
>
> On Mon, 30 Oct 2017, Junio C Hamano wrote:
>
>> * jc/branch-name-sanity (2017-10-14) 3 commits
>>   (merged to 'next' on 2017-10-16 at 174646d1c3)
>>  + branch: forbid refs/heads/HEAD
>>  + branch: split validate_new_branchname() into two
>>  + branch: streamline "attr_only" handling in validate_new_branchname()
>> 
>>  "git branch" and "git checkout -b" are now forbidden from creating
>>  a branch whose name is "HEAD".
>
> Question: should we respect core.ignoreCase and if it is true, compare
> case-insensitively? Or should we just keep the comparison
> case-sensitively, in preparation for a (hopefully near) refs backend that
> does not inherit filesystems' case-insensitivity?

While I do think it would be good if the system as a whole somewhere we had a safety to say "We do not allow hEaD as branch name as you are using the files-backend as your reference storage on a case insensitive filesystem", I do not think it is a good idea to do so in the layer the above patches touch. Once a more capable ref backend comes (Shawn's reftable, anybody???), platforms with case insensitive filesystems can allow refs/heads/hEaD as a branch whose name is hEaD that is different from another branch whose name is hEAD just fine; having the "we are on icase system, so reject" check at the layer would mean we need to remember we have such a check at a wrong layer and revert it when such an improvement happens.

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 5 of 13 in “What's cooking in git.git (Oct 2017, #07; Mon, 30)”
  1. Junio C HamanoOct 30, 2017
  2. Ben PeartOct 30, 2017
  3. Johannes SchindelinOct 30, 2017
  4. Johannes SchindelinOct 30, 2017
  5. Junio C HamanoOct 31, 2017
  6. Johannes SchindelinOct 31, 2017
  7. Johannes SchindelinOct 30, 2017
  8. Jeff HostetlerOct 30, 2017
  9. Junio C HamanoOct 31, 2017
  10. Jeff HostetlerOct 31, 2017
  11. Junio C HamanoNov 1, 2017
  12. Jonathan TanNov 1, 2017
  13. Junio C HamanoNov 2, 2017

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.