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

[PATCH v2 0/2] fix t3010 failure when core.ignorecase=true

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Aug 23, 2013, 20:29 UTC
Message-ID
<1377289759-46838-1-git-send-email-sunshine@sunshineco.com>

This is a re-roll of [1] which fixes a bug in dir.c resulting in failure of a newly added test in t3010 when core.ignorecase=true.

Recent mailing list discussion [2][3] suggests that changes at a more fundamental level (if they pan out) would be a more appropriate approach to resolving this bug. Such an approach would (happily) make patch 2/2 unnecessary, however, I'm posting this series for posterity since it was already written before [2][3]. Also, since I'm learning the relevant git internals as I work on these issues, any fix at the more fundamental level (if it comes from me) is going to be correspondingly delayed since there is so much more to digest.

Changes since v1:
patch 1: place the new test in t3010 instead of t3103 [4]

patch 2: make directory_exists_in_index() and directory_exists_in_index_icase() responsible for their own internal requirements regarding presence or lack of trailing '/' [5]; also, pass in already-existing strbufs so that directory_exists_in_index_icase() doesn't have to make its own copy of the incoming string in order to append '/'

[1]: http://thread.gmane.org/gmane.comp.version-control.git/232796 [2]: http://thread.gmane.org/gmane.comp.version-control.git/232727/focus=232813 [3]: http://thread.gmane.org/gmane.comp.version-control.git/232727/focus=232822 [4]: http://thread.gmane.org/gmane.comp.version-control.git/232796/focus=232814 [5]: http://thread.gmane.org/gmane.comp.version-control.git/232727/focus=232800

Eric Sunshine (2):
  t3103: demonstrate dir.c:treat_one_path() core.ignorecase failure
  dir: test_one_path: fix inconsistent behavior due to missing '/'
 dir.c                               | 42 +++++++++++++++++++++++--------------
 t/t3010-ls-files-killed-modified.sh |  8 +++++++
 2 files changed, 34 insertions(+), 16 deletions(-)
-- 
1.8.4.rc4.557.g46c5bb2
Next: Eric Sunshine
Message 1 of 5 in “fix t3010 failure when core.ignorecase=true”
  1. 0/2 fix t3010 failure when core.ignorecase=trueEric Sunshine, Aug 23, 2013
  2. 1/2 t3103: demonstrate dir.c:treat_one_path() core.ignorecase failureEric Sunshine, Aug 23, 2013
  3. 2/2 dir: fix core.ignorecase inconsistency with missing '/'Eric Sunshine, Aug 23, 2013
  4. Junio C HamanoAug 23, 2013
  5. Eric SunshineAug 23, 2013

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.