git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Teach fetch --prune and --dry run options
@ 2009-11-10  4:58 Jay Soffian
  2009-11-10  4:58 ` [PATCH 1/4] remote: refactor some logic into get_stale_heads() Jay Soffian
  0 siblings, 1 reply; 6+ messages in thread
From: Jay Soffian @ 2009-11-10  4:58 UTC (permalink / raw)
  To: git; +Cc: Jay Soffian, Junio C Hamano, Björn Gustavsson

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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH 0/4] Teach fetch --prune and --dry run options
@ 2009-11-10  5:03 Jay Soffian
  2009-11-10  5:03 ` [PATCH 1/4] remote: refactor some logic into get_stale_heads() Jay Soffian
  0 siblings, 1 reply; 6+ messages in thread
From: Jay Soffian @ 2009-11-10  5:03 UTC (permalink / raw)
  To: git; +Cc: Jay Soffian, Junio C Hamano, Björn Gustavsson

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-11-10  5:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-10  4:58 [PATCH 0/4] Teach fetch --prune and --dry run options Jay Soffian
2009-11-10  4:58 ` [PATCH 1/4] remote: refactor some logic into get_stale_heads() Jay Soffian
2009-11-10  4:58   ` [PATCH 2/4] teach warn_dangling_symref to take a FILE argument Jay Soffian
2009-11-10  4:58     ` [PATCH 3/4] builtin-fetch: add --prune option Jay Soffian
2009-11-10  4:58       ` [PATCH 4/4] builtin-fetch: add --dry-run option Jay Soffian
  -- strict thread matches above, loose matches on Subject: below --
2009-11-10  5:03 [PATCH 0/4] Teach fetch --prune and --dry run options Jay Soffian
2009-11-10  5:03 ` [PATCH 1/4] remote: refactor some logic into get_stale_heads() Jay Soffian
2009-11-10  5:03   ` [PATCH 2/4] teach warn_dangling_symref to take a FILE argument Jay Soffian
2009-11-10  5:03     ` [PATCH 3/4] builtin-fetch: add --prune option Jay Soffian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).