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

[PATCH 0/4] Follow-up to js/pull-release-backs-before-fetching

From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
Date
Sep 9, 2021, 09:47 UTC
Message-ID
<pull.1035.git.1631180828.gitgitgadget@gmail.com>

This implements the API enhancements suggested in https://lore.kernel.org/git/xmqqh7eu3mjb.fsf@gitster.g: we introduce a way to let run_command() handle the releasing of the file handles to the object store. It should make the code easier to work with in the future because it will be more obvious how to support Windows better when copy/editing code.

Johannes Schindelin (4):
  run-command: prettify the `RUN_COMMAND_*` flags
  run-command: offer to close the object store before running
  run_auto_maintenance(): implicitly close the object store
  Close object store closer to spawning child processes
 builtin/am.c           |  1 -
 builtin/fetch.c        |  2 --
 builtin/gc.c           | 18 ++++++------------
 builtin/merge.c        |  1 -
 builtin/pull.c         |  3 +--
 builtin/rebase.c       |  1 -
 builtin/receive-pack.c |  3 +--
 run-command.c          |  6 ++++++
 run-command.h          | 23 ++++++++++++++++-------
 9 files changed, 30 insertions(+), 28 deletions(-)
base-commit: 7e44ff7a3983ad0c7be5c9edcfea2e8355ce9a65
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1035%2Fdscho%2Fclose-object-store-in-run-command-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1035/dscho/close-object-store-in-run-command-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1035
-- 
gitgitgadget
Next: Johannes Schindelin via GitGitGadget
Message 1 of 5 in “Follow-up to js/pull-release-backs-before-fetching”
  1. 0/4 Follow-up to js/pull-release-backs-before-fetchingJohannes Schindelin via GitGitGadget, Sep 9, 2021
  2. 1/4 run-command: prettify the `RUN_COMMAND_*` flagsJohannes Schindelin via GitGitGadget, Sep 9, 2021
  3. 2/4 run-command: offer to close the object store before runningJohannes Schindelin via GitGitGadget, Sep 9, 2021
  4. 3/4 run_auto_maintenance(): implicitly close the object storeJohannes Schindelin via GitGitGadget, Sep 9, 2021
  5. 4/4 Close object store closer to spawning child processesJohannes Schindelin via GitGitGadget, Sep 9, 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.