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

[PATCH 0/4] Teach fetch --prune and --dry run options

From
Jay Soffian <jaysoffian@gmail.com>
Date
Nov 10, 2009, 04:58 UTC
Message-ID
<1257829113-52168-1-git-send-email-jaysoffian@gmail.com>

This series builds on bg/fetch-multi, by teaching fetch --prune, re-enabling "remote update --prune" and ensuring its corresponding test now passes.

As a convenience to users used to "remote prune" supporting the "--dry-run" option, we also teach this option to fetch since it's trivial to do so.

I've left out re-implementing "remote prune" as a synonym for "update --prune" since it's not a 1:1 match. And as per Junio's comments, teaching fetch a "--prune-only" option would be a UI wart.

Jay Soffian (4):
  remote: refactor some logic into get_stale_heads()
  teach warn_dangling_symref to take a FILE argument
  builtin-fetch: add --prune option
  builtin-fetch: add --dry-run option
 Documentation/fetch-options.txt |    9 ++++++++
 builtin-fetch.c                 |   42 +++++++++++++++++++++++++++++++++++---
 builtin-remote.c                |   38 +++++++++++------------------------
 refs.c                          |    7 +++--
 refs.h                          |    2 +-
 remote.c                        |   40 +++++++++++++++++++++++++++++++++++++
 remote.h                        |    3 ++
 t/t5505-remote.sh               |    2 +-
 8 files changed, 108 insertions(+), 35 deletions(-)
Next: Jay Soffian
Message 1 of 5 in “Teach fetch --prune and --dry run options”
  1. 0/4 Teach fetch --prune and --dry run optionsJay Soffian, Nov 10, 2009
  2. 1/4 remote: refactor some logic into get_stale_heads()Jay Soffian, Nov 10, 2009
  3. 2/4 teach warn_dangling_symref to take a FILE argumentJay Soffian, Nov 10, 2009
  4. 3/4 builtin-fetch: add --prune optionJay Soffian, Nov 10, 2009
  5. 4/4 builtin-fetch: add --dry-run optionJay Soffian, Nov 10, 2009

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.