Teach fetch --prune and --dry run options
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | remote: refactor some logic into get_stale_heads()builtin-remote.c remote.c remote.h | +51 | 0 replies | |
| 2/4 | teach warn_dangling_symref to take a FILE argumentbuiltin-remote.c refs.c refs.h | +6 | 0 replies | |
| 3/4 | builtin-fetch: add --prune optionDocumentation/ builtin-fetch.c builtin-remote.c +1 more | +38 | 0 replies | |
| 4/4 | builtin-fetch: add --dry-run optionDocumentation/ builtin-fetch.c | +15 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)