Implement the git-receive-pack process in Java
commita2fa04761e5ce128af4597a2e6dbb751052f5650
authorShawn O. Pearce <spearce@spearce.org>
Tue, 23 Dec 2008 00:27:22 +0000 (22 16:27 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 4 Jan 2009 00:01:49 +0000 (4 01:01 +0100)
tree30c67fab7ecf0b740faa213ef018927df7b91c11
parentcdd6afe03a0a91766cfe73228759d5abd6fad6e8
Implement the git-receive-pack process in Java

This implementation provides a basic git-receive-pack service within
Java.  Two hooks APIs are supported before and after commands are
executed within the connection, allowing daemons to customize the
behavior of the updates.

Logic to bind the ReceivePack class to a pipe or network socket is
omitted, as it depends on the transport.  SSH servers will need a
pure Java SSH implementation such as Apache MINA SSHD.  Anonymous
push over git:// requires a basic git-daemon functionality.  Local
pipe access might use pure-Java pipes, or System.in/System.out.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/transport/PacketLineIn.java
org.spearce.jgit/src/org/spearce/jgit/transport/PostReceiveHook.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/transport/PreReceiveHook.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/transport/ReceiveCommand.java [new file with mode: 0644]
org.spearce.jgit/src/org/spearce/jgit/transport/ReceivePack.java [new file with mode: 0644]