/usr/share/doc/git/technical
Long-running process protocol ============================= This protocol is used when Git needs to communicate with an external process throughout the entire life of a single Git command. All communication is in pkt-line format (see linkgit:gitprotocol-common[5]) over standard input and standard output. Handshake --------- Git starts by sending a welcome message (for example, "git-filter-client"), a list of supported protocol version numbers, and a flush packet. Git expects to read the welcome message with "server" instead of "client" (for example, "git-filter-server"), exactly one protocol version number from the previously sent list, and a flush packet. All further communication will be based on the selected version. The remaining protocol description below documents "version=2". Please note that "version=42" in the example below does not exist and is only there to illustrate how the protocol would look like with more than one version. After the version negotiation Git sends a list of all capabilities that it supports and a flush packet. Git expects to read a list of desired capabilities, which must be a subset of the supported capabilities list, and a flush packet as response: ------------------------ packet: git> git-filter-client packet: git> version=2 packet: git> version=42 packet: git> 0000 packet: git< git-filter-server packet: git< version=2 packet: git< 0000 packet: git> capability=clean packet: git> capability=smudge packet: git> capability=not-yet-invented packet: git> 0000 packet: git< capability=clean packet: git< capability=smudge packet: git< 0000 ------------------------ Shutdown -------- Git will close the command pipe on exit. The filter is expected to detect EOF and exit gracefully on its own. Git will wait until the filter process has stopped.
.
Edit
..
Edit
api-error-handling.html
Edit
api-error-handling.txt
Edit
api-index-skel.txt
Edit
api-index.html
Edit
api-index.sh
Edit
api-index.txt
Edit
api-merge.html
Edit
api-merge.txt
Edit
api-parse-options.html
Edit
api-parse-options.txt
Edit
api-simple-ipc.html
Edit
api-simple-ipc.txt
Edit
api-trace2.html
Edit
api-trace2.txt
Edit
bitmap-format.html
Edit
bitmap-format.txt
Edit
bundle-uri.html
Edit
bundle-uri.txt
Edit
commit-graph.txt
Edit
directory-rename-detection.txt
Edit
hash-function-transition.html
Edit
hash-function-transition.txt
Edit
long-running-process-protocol.html
Edit
long-running-process-protocol.txt
Edit
multi-pack-index.html
Edit
multi-pack-index.txt
Edit
pack-heuristics.html
Edit
pack-heuristics.txt
Edit
packfile-uri.txt
Edit
parallel-checkout.html
Edit
parallel-checkout.txt
Edit
partial-clone.html
Edit
partial-clone.txt
Edit
platform-support.html
Edit
platform-support.txt
Edit
racy-git.html
Edit
racy-git.txt
Edit
reftable.html
Edit
reftable.txt
Edit
remembering-renames.txt
Edit
repository-version.txt
Edit
rerere.txt
Edit
scalar.html
Edit
scalar.txt
Edit
send-pack-pipeline.html
Edit
send-pack-pipeline.txt
Edit
shallow.html
Edit
shallow.txt
Edit
sparse-checkout.txt
Edit
sparse-index.txt
Edit
trivial-merge.html
Edit
trivial-merge.txt
Edit
unit-tests.html
Edit
unit-tests.txt
Edit