git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH v3 00/10] transport-helper: updates
@ 2013-10-12  7:05 Felipe Contreras
  2013-10-12  7:05 ` [PATCH v3 03/10] transport-helper: check for 'forced update' message Felipe Contreras
                   ` (10 more replies)
  0 siblings, 11 replies; 16+ messages in thread
From: Felipe Contreras @ 2013-10-12  7:05 UTC (permalink / raw)
  To: git; +Cc: Sverre Rabbelier, Richard Hansen, Felipe Contreras

Hi,

Here are the patches that allow transport helpers to be completely transparent;
renaming branches, deleting them, custom refspecs, --force, --dry-run,
reporting forced update, everything works.

Some of these were were sent before and rejected without a reason, but here
they are again in case anybody is interested.

Diff from v2:

--- a/transport-helper.c
+++ b/transport-helper.c
@@ -821,8 +821,10 @@ static int push_refs_with_export(struct transport *transport,
                        die("helper %s does not support dry-run", data->name);
        }
 
-       if (flags & TRANSPORT_PUSH_FORCE)
-               set_helper_option(transport, "force", "true");
+       if (flags & TRANSPORT_PUSH_FORCE) {
+               if (set_helper_option(transport, "force", "true") != 0)
+                       die("helper %s does not support 'force'", data->name);
+       }
 
        helper = get_helper(transport);
 

Felipe Contreras (10):
  transport-helper: add 'force' to 'export' helpers
  transport-helper: fix extra lines
  transport-helper: check for 'forced update' message
  fast-export: improve argument parsing
  fast-export: add new --refspec option
  transport-helper: add support for old:new refspec
  fast-import: add support to delete refs
  fast-export: add support to delete refs
  transport-helper: add support to delete branches
  transport-helper: don't update refs in dry-run

 Documentation/git-fast-export.txt |  4 ++++
 Documentation/git-fast-import.txt |  3 +++
 builtin/fast-export.c             | 47 ++++++++++++++++++++++++++++++++++++++-
 fast-import.c                     | 13 ++++++++---
 t/t5801-remote-helpers.sh         | 10 ++++++++-
 t/t9300-fast-import.sh            | 18 +++++++++++++++
 t/t9350-fast-export.sh            | 18 +++++++++++++++
 transport-helper.c                | 44 ++++++++++++++++++++++++++----------
 8 files changed, 140 insertions(+), 17 deletions(-)

-- 
1.8.4-fc

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

end of thread, other threads:[~2013-10-27  6:24 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-12  7:05 [PATCH v3 00/10] transport-helper: updates Felipe Contreras
2013-10-12  7:05 ` [PATCH v3 03/10] transport-helper: check for 'forced update' message Felipe Contreras
2013-10-12  7:05 ` [PATCH v3 05/10] fast-export: add new --refspec option Felipe Contreras
2013-10-14 19:42   ` Eric Sunshine
2013-10-12  7:05 ` [PATCH v3 06/10] transport-helper: add support for old:new refspec Felipe Contreras
2013-10-12  7:05 ` [PATCH v3 02/10] transport-helper: fix extra lines Felipe Contreras
2013-10-12  7:05 ` [PATCH v3 09/10] transport-helper: add support to delete branches Felipe Contreras
2013-10-27  4:34   ` [PATCH v3 11/10] fixup! " Richard Hansen
2013-10-27  4:55     ` Felipe Contreras
2013-10-27  5:00       ` Felipe Contreras
2013-10-12  7:05 ` [PATCH v3 01/10] transport-helper: add 'force' to 'export' helpers Felipe Contreras
2013-10-12  7:05 ` [PATCH v3 08/10] fast-export: add support to delete refs Felipe Contreras
2013-10-12  7:05 ` [PATCH v3 10/10] transport-helper: don't update refs in dry-run Felipe Contreras
2013-10-12  7:05 ` [PATCH v3 07/10] fast-import: add support to delete refs Felipe Contreras
2013-10-12  7:05 ` [PATCH v3 04/10] fast-export: improve argument parsing Felipe Contreras
2013-10-27  6:23 ` [PATCH v3 00/10] transport-helper: updates Richard Hansen

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).