Documentation / git-remote-helpers.txton commit remote-helpers: Fetch more than one ref in a batch (292ce46)
   1git-remote-helpers(1)
   2=====================
   3
   4NAME
   5----
   6git-remote-helpers - Helper programs for interoperation with remote git
   7
   8SYNOPSIS
   9--------
  10'git remote-<transport>' <remote>
  11
  12DESCRIPTION
  13-----------
  14
  15These programs are normally not used directly by end users, but are
  16invoked by various git programs that interact with remote repositories
  17when the repository they would operate on will be accessed using
  18transport code not linked into the main git binary. Various particular
  19helper programs will behave as documented here.
  20
  21COMMANDS
  22--------
  23
  24Commands are given by the caller on the helper's standard input, one per line.
  25
  26'capabilities'::
  27        Lists the capabilities of the helper, one per line, ending
  28        with a blank line.
  29
  30'list'::
  31        Lists the refs, one per line, in the format "<value> <name>
  32        [<attr> ...]". The value may be a hex sha1 hash, "@<dest>" for
  33        a symref, or "?" to indicate that the helper could not get the
  34        value of the ref. A space-separated list of attributes follows
  35        the name; unrecognized attributes are ignored. After the
  36        complete list, outputs a blank line.
  37
  38'fetch' <sha1> <name>::
  39        Fetches the given object, writing the necessary objects
  40        to the database.  Fetch commands are sent in a batch, one
  41        per line, and the batch is terminated with a blank line.
  42        Outputs a single blank line when all fetch commands in the
  43        same batch are complete. Only objects which were reported
  44        in the ref list with a sha1 may be fetched this way.
  45+
  46Optionally may output a 'lock <file>' line indicating a file under
  47GIT_DIR/objects/pack which is keeping a pack until refs can be
  48suitably updated.
  49+
  50Supported if the helper has the "fetch" capability.
  51
  52If a fatal error occurs, the program writes the error message to
  53stderr and exits. The caller should expect that a suitable error
  54message has been printed if the child closes the connection without
  55completing a valid response for the current command.
  56
  57Additional commands may be supported, as may be determined from
  58capabilities reported by the helper.
  59
  60CAPABILITIES
  61------------
  62
  63'fetch'::
  64        This helper supports the 'fetch' command.
  65
  66REF LIST ATTRIBUTES
  67-------------------
  68
  69None are defined yet, but the caller must accept any which are supplied.
  70
  71Documentation
  72-------------
  73Documentation by Daniel Barkalow.
  74
  75GIT
  76---
  77Part of the linkgit:git[1] suite