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

Re: [PATCH] maintenance: add prune-remote-refs task

From
Shubham Kanodia <shubham.kanodia10@gmail.com>
Date
Dec 28, 2024, 09:58 UTC
Message-ID
<CAG=Um+0a+ugf+gWUDS3htj3u2tewzOrH+xGbF+2A+w4ofjQfKg@mail.gmail.com>
In-Reply-To
<xmqqed1tv6hu.fsf@gitster.g>
On Fri, Dec 27, 2024 at 2:37 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 18 quoted lines
>
> Thanks for a patch.
>
>
> "Shubham Kanodia via GitGitGadget" <gitgitgadget@gmail.com> writes:
>
> You'd want to check your procedure to tell GGG about addresses; I am
> seeing these
>
>     From: "Shubham Kanodia via GitGitGadget" <gitgitgadget@gmail.com>
>     To: git@vger.kernel.org
>     Cc: "mailto:gitster@pobox.com" <[gitster@pobox.com]>,
>             "mailto:ps@pks.im" <[ps@pks.im]>,
>             Shubham Kanodia <shubham.kanodia10@gmail.com>,
>             Shubham Kanodia <shubham.kanodia10@gmail.com>
>
> and Cc addresses in it would probably not work as-is (I've fixed
> them up manually).
I think the GGG comment had a few formatting errors. Thanks for fixing the cc.
> Hmph, is there a reason why you need two loops, instead of
> for-each-remote calling a function that does the run_command()
> thing?
It can be collapsed into one.
Show 6 quoted lines
> This loop does not stop at the first error, but returns a non-zero
> error after noticing even a single remote fail to run prune, which
> sounds like a seneible design.  Would an error percolate up the same
> way when two different tasks run and one of them fails in the
> control folow in "git maintenance"?  Just want to see if we are
> being consistent with the surrounding code.

Fair point. I'll make the process flow identical to the prefetch refs task that works similarly across remotes. It returns as soon as the first remote fails (without necessarily affecting other tasks).

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 15 in “maintenance: add prune-remote-refs task”
  1. maintenance: add prune-remote-refs taskShubham Kanodia via GitGitGadget, Dec 23, 2024
  2. Junio C HamanoDec 27, 2024
  3. Shubham KanodiaDec 28, 2024
  4. Junio C HamanoDec 28, 2024
  5. Shubham KanodiaDec 28, 2024
  6. maintenance: add prune-remote-refs taskShubham Kanodia via GitGitGadget, Dec 28, 2024
  7. Junio C HamanoDec 28, 2024
  8. Patrick SteinhardtDec 30, 2024
  9. Junio C HamanoDec 30, 2024
  10. Shubham KanodiaJan 3, 2025
  11. Patrick SteinhardtJan 3, 2025
  12. maintenance: add prune-remote-refs taskShubham Kanodia via GitGitGadget, Jan 3, 2025
  13. Junio C HamanoJan 3, 2025
  14. Shubham KanodiaJan 7, 2025
  15. Junio C HamanoJan 7, 2025

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.