format-patch: Always generate a patch
[git/dscho.git] / Documentation / git-remote-helpers.txt
blob173ee232f2cd24231ab95e3337da555be27a4746
1 git-remote-helpers(1)
2 =====================
4 NAME
5 ----
6 git-remote-helpers - Helper programs for interoperation with remote git
8 SYNOPSIS
9 --------
10 'git remote-<transport>' <remote>
12 DESCRIPTION
13 -----------
15 These programs are normally not used directly by end users, but are
16 invoked by various git programs that interact with remote repositories
17 when the repository they would operate on will be accessed using
18 transport code not linked into the main git binary. Various particular
19 helper programs will behave as documented here.
21 COMMANDS
22 --------
24 Commands are given by the caller on the helper's standard input, one per line.
26 'capabilities'::
27         Lists the capabilities of the helper, one per line, ending
28         with a blank line.
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.
38 'fetch' <sha1> <name>::
39         Fetches the given object, writing the necessary objects to the
40         database. Outputs a blank line when the fetch is
41         complete. Only objects which were reported in the ref list
42         with a sha1 may be fetched this way.
44 Supported if the helper has the "fetch" capability.
46 If a fatal error occurs, the program writes the error message to
47 stderr and exits. The caller should expect that a suitable error
48 message has been printed if the child closes the connection without
49 completing a valid response for the current command.
51 Additional commands may be supported, as may be determined from
52 capabilities reported by the helper.
54 CAPABILITIES
55 ------------
57 'fetch'::
58         This helper supports the 'fetch' command.
60 REF LIST ATTRIBUTES
61 -------------------
63 None are defined yet, but the caller must accept any which are supplied.
65 Documentation
66 -------------
67 Documentation by Daniel Barkalow.
69 GIT
70 ---
71 Part of the linkgit:git[1] suite