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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(Darn it, I left the SOB off. This is a resend of the series with SOB. Sorry
for the noise...)

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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]