Skip to content

Teach fetch --prune and --dry run options

Jay Soffian git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4remote: refactor some logic into get_stale_heads()builtin-remote.c remote.c remote.h+51 -240 replies
2/4teach warn_dangling_symref to take a FILE argumentbuiltin-remote.c refs.c refs.h+6 -50 replies
3/4builtin-fetch: add --prune optionDocumentation/fetch-options.txt builtin-fetch.c builtin-remote.c +1 more+38 -40 replies
4/4builtin-fetch: add --dry-run optionDocumentation/fetch-options.txt builtin-fetch.c+15 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)