threads / discuss / 30593

git-upload-pack stream

Subject: git-upload-pack stream

## tl;dr

3 messages between May 22, 2012 and May 22, 2012.

replies: 2people: 2as markdown or json

Tajti Ákos· May 22, 2012, 16:35 UTC · lore
Dear List,

when pushing through http git-http-backend gets a stream of object when sending the git-upload-packl command. This stream starts with two object ids and a branch name. Is there a specification about how this streem exactly looks like?

Thanks in advance, Ákos Tajti

Jeff King· May 22, 2012, 18:12 UTC · re: Tajti Ákos · lore

Re: git-upload-pack stream

On Tue, May 22, 2012 at 06:35:47PM +0200, Tajti Ákos wrote:
> when pushing through http git-http-backend gets a stream of object
> when sending the git-upload-packl command. This stream starts with
> two object ids and a branch name. Is there a specification about how
> this streem exactly looks like?

Have you looked at what's in Documentation/technical in the git.git repository? Specifically, protocol-common.txt and pack-protocol.txt describe what happens over the regular protocol. The http version of the protocol just splits that into chunks, but the output that upload-pack produces is the same.

You mentioned "pushing", though, which does not involve git-upload-pack at all. Did you mean git-receive-pack? From your description, I guess maybe you mean the "command-list" lines sent by send-pack to receive-pack? They are defined pack-protocol.txt. See the subsection "Reference Update Request and Packfile Transfer" under "Pushing Data to a Server".

-Peff
Tajti Ákos· May 22, 2012, 21:46 UTC · re: Jeff King · lore

Re: git-upload-pack stream

Jeff,
thanks for the information
Ákos
2012.05.22. 20:12 keltezéssel, Jeff King írta:
Show 20 quoted lines
> On Tue, May 22, 2012 at 06:35:47PM +0200, Tajti Ákos wrote:
>
>> when pushing through http git-http-backend gets a stream of object
>> when sending the git-upload-packl command. This stream starts with
>> two object ids and a branch name. Is there a specification about how
>> this streem exactly looks like?
> Have you looked at what's in Documentation/technical in the git.git
> repository? Specifically, protocol-common.txt and pack-protocol.txt
> describe what happens over the regular protocol. The http version of the
> protocol just splits that into chunks, but the output that upload-pack
> produces is the same.
>
> You mentioned "pushing", though, which does not involve git-upload-pack
> at all. Did you mean git-receive-pack? From your description, I guess
> maybe you mean the "command-list" lines sent by send-pack to
> receive-pack? They are defined pack-protocol.txt. See the subsection
> "Reference Update Request and Packfile Transfer" under "Pushing Data to
> a Server".
>
> -Peff

← back to recent threads