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

[PATCH 00/11] nd/the-index-final small update

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Jan 24, 2019, 08:29 UTC
Message-ID
<20190124082912.24401-1-pclouds@gmail.com>
This was noticed by Ramsay [1] and I almost forgot.
[1] http://public-inbox.org/git/419519f9-1b48-93bb-eead-eacf6b383f70@ramsayjones.plus.com
Range-diff:
1:  4478671442 ! 1:  971d2839ab cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switch
    @@ -2,12 +2,11 @@
     
         cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switch
     
    -    >From now on, by default index compat macros are off because they could
    +    From now on, by default index compat macros are off because they could
         hide the_index dependency. Only those in builtin can use it (and even
         so should be avoided if possible).
     
         Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
    -    Signed-off-by: Junio C Hamano <gitster@pobox.com>
     
      diff --git a/attr.c b/attr.c
      --- a/attr.c
    @@ -590,6 +589,15 @@
      diff --git a/repository.c b/repository.c
      --- a/repository.c
      +++ b/repository.c
    +@@
    ++/*
    ++ * not really _using_ the compat macros, just make sure the_index
    ++ * declaration matches the definition in this file.
    ++ */
    ++#define USE_THE_INDEX_COMPATIBILITY_MACROS
    + #include "cache.h"
    + #include "repository.h"
    + #include "object-store.h"
     @@
      /* The main repository */
      static struct repository the_repo;
-- 
2.20.1.560.g70ca8b83ee
Next: Nguyễn Thái Ngọc Duy
Message 1 of 13 in “nd/the-index-final small update”
  1. 00/11 nd/the-index-final small updateNguyễn Thái Ngọc Duy, Jan 24, 2019
  2. 02/11 notes-utils.c: remove the_repository referencesNguyễn Thái Ngọc Duy, Jan 24, 2019
  3. 03/11 repository.c: replace hold_locked_index() with repo_hold_locked_index()Nguyễn Thái Ngọc Duy, Jan 24, 2019
  4. 01/11 grep: use grep_opt->repo instead of explict repo argumentNguyễn Thái Ngọc Duy, Jan 24, 2019
  5. 04/11 checkout: avoid the_index when possibleNguyễn Thái Ngọc Duy, Jan 24, 2019
  6. 05/11 read-cache.c: kill read_index()Nguyễn Thái Ngọc Duy, Jan 24, 2019
  7. 06/11 read-cache.c: replace update_index_if_able with repo_&Nguyễn Thái Ngọc Duy, Jan 24, 2019
  8. 08/11 merge-recursive.c: remove implicit dependency on the_indexNguyễn Thái Ngọc Duy, Jan 24, 2019
  9. 07/11 sha1-name.c: remove implicit dependency on the_indexNguyễn Thái Ngọc Duy, Jan 24, 2019
  10. 09/11 merge-recursive.c: remove implicit dependency on the_repositoryNguyễn Thái Ngọc Duy, Jan 24, 2019
  11. 10/11 read-cache.c: remove the_* from index_has_changes()Nguyễn Thái Ngọc Duy, Jan 24, 2019
  12. 11/11 cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switchNguyễn Thái Ngọc Duy, Jan 24, 2019
  13. Junio C HamanoJan 24, 2019

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.