From mboxrd@z Thu Jan 1 00:00:00 1970 From: Max Horn Subject: [PATCH 2/6] Document missing remote helper capabilities Date: Tue, 27 Nov 2012 18:44:35 +0100 Message-ID: <1354038279-76475-3-git-send-email-max@quendi.de> References: <1354038279-76475-1-git-send-email-max@quendi.de> Cc: Max Horn To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Tue Nov 27 18:45:28 2012 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TdPDq-0003RF-T6 for gcvg-git-2@plane.gmane.org; Tue, 27 Nov 2012 18:45:27 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756724Ab2K0RpG (ORCPT ); Tue, 27 Nov 2012 12:45:06 -0500 Received: from wp256.webpack.hosteurope.de ([80.237.133.25]:45262 "EHLO wp256.webpack.hosteurope.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756646Ab2K0RpD (ORCPT ); Tue, 27 Nov 2012 12:45:03 -0500 Received: from ip-178-200-227-112.unitymediagroup.de ([178.200.227.112] helo=localhost.localdomain); authenticated by wp256.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) id 1TdPDO-00080S-Ii; Tue, 27 Nov 2012 18:44:58 +0100 X-Mailer: git-send-email 1.8.0.393.gcc9701d In-Reply-To: <1354038279-76475-1-git-send-email-max@quendi.de> X-bounce-key: webpack.hosteurope.de;max@quendi.de;1354038303;591c5d08; Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: The 'export' and '(im|ex)port-marks' capabilities were not documented at all Signed-off-by: Max Horn --- Documentation/git-remote-helpers.txt | 45 +++++++++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/Documentation/git-remote-helpers.txt b/Documentation/git-remote-helpers.txt index 9a7e583..db63541 100644 --- a/Documentation/git-remote-helpers.txt +++ b/Documentation/git-remote-helpers.txt @@ -106,6 +106,10 @@ to the `capabilities` command (see COMMANDS, below). For listing remote refs and fetching the associated history to the local object store. +'export':: + For listing remote refs and pushing specified objects from a + fast-import stream to remote refs. + 'import':: For listing remote refs and fetching the associated history as a fast-import stream. @@ -143,6 +147,16 @@ there is an implied `refspec *:*`. This is to prevent mixing commands and fast-import responses on the helper's stdin. +'export-marks' :: + This modifies the 'export' capability, instructing git to dump the + internal marks table to when complete. For details, + read up on '--export-marks=' in linkgit:git-fast-export[1]. + +'import-marks' :: + This modifies the 'export' capability, instructing git to load the + marks specified in before processing any input. For details, + read up on '--import-marks=' in linkgit:git-fast-export[1]. + Capabilities for Pushing ~~~~~~~~~~~~~~~~~~~~~~~~ 'connect':: @@ -158,9 +172,18 @@ Supported commands: 'connect'. + Supported commands: 'list for-push', 'push'. -If a helper advertises both 'connect' and 'push', git will use -'connect' if possible and fall back to 'push' if the helper requests -so when connecting (see the 'connect' command under COMMANDS). +'export':: + Can discover remote refs and push specified objects from a + fast-import stream to remote refs. ++ +Supported commands: 'list for-push', 'export'. + +If a helper advertises 'connect', git will use it if possible and +fall back to another capability if the helper requests so when +connecting (see the 'connect' command under COMMANDS). +When choosing between 'push' and 'export', git prefers 'push'. +Other frontends may have some other order of preference. + Capabilities for Fetching ~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -307,6 +330,22 @@ stdin. + Supported if the helper has the 'import' capability. +'export':: + Instructs the remote helper that any subsequent input is + part of a fast-import stream (generated by 'git fast-export') + containing objects which should be pushed to the remote. ++ +Especially useful for interoperability with a foreign versioning +system. ++ +The 'export-marks' and 'import-marks' capabilities, if specified, +affect this command in so far as they are passed on to 'git +fast-export', which then will load/store a table of marks for +local objects. This can be used to implement for incremental +operations. ++ +Supported if the helper has the 'export' capability. + 'connect' :: Connects to given service. Standard input and standard output of helper are connected to specified service (git prefix is -- 1.8.0.393.gcc9701d