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

[PATCH 0/5] refs: remove long-dead code

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Sep 28, 2021, 13:02 UTC
Message-ID
<cover-0.5-00000000000-20210928T130032Z-avarab@gmail.com>

This removes dead code in the refs backend, mainly in the ref-cache. By line count this is mostly a straightforward follow-up to 9939b33d6a3 (packed-backend: rip out some now-unused code, 2017-09-08) and 9dd389f3d8d (packed_ref_store: get rid of the `ref_cache` entirely, 2017-09-25).

Ævar Arnfjörð Bjarmason (5):
  refs.[ch]: remove unused ref_storage_backend_exists()
  refs/ref-cache.[ch]: remove unused remove_entry_from_dir()
  refs/ref-cache.[ch]: remove unused add_ref_entry()
  refs/ref-cache.c: remove "mkdir" parameter from find_containing_dir()
  refs/ref-cache.[ch]: remove "incomplete" from create_dir_entry()
 refs.c               |  5 ---
 refs.h               |  2 -
 refs/files-backend.c |  6 +--
 refs/ref-cache.c     | 87 ++++++++------------------------------------
 refs/ref-cache.h     | 26 +------------
 5 files changed, 19 insertions(+), 107 deletions(-)
-- 
2.33.0.1340.ge9f77250f2b
Next: Ævar Arnfjörð Bjarmason
Message 1 of 8 in “refs: remove long-dead code”
  1. 0/5 refs: remove long-dead codeÆvar Arnfjörð Bjarmason, Sep 28, 2021
  2. 1/5 refs.[ch]: remove unused ref_storage_backend_exists()Ævar Arnfjörð Bjarmason, Sep 28, 2021
  3. 2/5 refs/ref-cache.[ch]: remove unused remove_entry_from_dir()Ævar Arnfjörð Bjarmason, Sep 28, 2021
  4. 3/5 refs/ref-cache.[ch]: remove unused add_ref_entry()Ævar Arnfjörð Bjarmason, Sep 28, 2021
  5. 4/5 refs/ref-cache.c: remove "mkdir" parameter from find_containing_dir()Ævar Arnfjörð Bjarmason, Sep 28, 2021
  6. 5/5 refs/ref-cache.[ch]: remove "incomplete" from create_dir_entry()Ævar Arnfjörð Bjarmason, Sep 28, 2021
  7. Jeff KingSep 28, 2021
  8. Junio C HamanoSep 28, 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.