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

Re: [PATCH v2 1/1] git mv foo FOO ; git mv foo bar gave an assert

From
Chris Torek <chris.torek@gmail.com>
Date
Mar 1, 2021, 19:36 UTC
Message-ID
<CAPx1GvcjO0-3nbcC_oYkYjhYenb_J9CoM6bZNaR_-t93cpppSw@mail.gmail.com>
In-Reply-To
<xmqqzgzmptmy.fsf@gitster.c.googlers.com>
On Mon, Mar 1, 2021 at 11:26 AM Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> Before the problematic patch, this used to be
>
>                } else if (cache_name_pos(src, length) < 0)
>
> I wonder if we should revert the change to use cache_file_exists()
> in the first place (and rewrite the subsequent use of ce to match),
> though.

For what it's worth, that was what I did originally; the change to look up the ce "up front" was because someone objected to the double search implied by calling cache_name_pos once, then cache_file_exists to determine the correct error message...

(I've never been 100% on how the ignore-case stuff works internally.)

Chris
Previous: Junio C HamanoNext: Junio C Hamano
Message 8 of 13 in “git-mv: fix git mv bug with case insensitive fs”
  1. git-mv: fix git mv bug with case insensitive fsDan Moseley, Dec 29, 2020
  2. Torsten BögershausenDec 31, 2020
  3. Junio C HamanoJan 6, 2021
  4. 1/1 git mv foo FOO ; git mv foo bar gave an asserttboegi@web.de, Jan 6, 2021
  5. Junio C HamanoJan 6, 2021
  6. 1/1 git mv foo FOO ; git mv foo bar gave an asserttboegi@web.de, Mar 1, 2021
  7. Junio C HamanoMar 1, 2021
  8. Chris TorekMar 1, 2021
  9. Junio C HamanoMar 1, 2021
  10. 1/1 git mv foo FOO ; git mv foo bar gave an asserttboegi@web.de, Mar 1, 2021
  11. Junio C HamanoMar 1, 2021
  12. Dan MoseleyMar 1, 2021
  13. Junio C HamanoMar 1, 2021

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.