Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is git's advertised refs?

Tags:

git

jgit

There is a org.eclipse.jgit.transport.OperationResult#getAdvertisedRefs in jgit. The term seems to be not specific to jgit but I can't find any precise description of the advertised refs.

Best regards, Eugene.

like image 559
user656449 Avatar asked Aug 28 '13 10:08

user656449


1 Answers

From Transfer Protocols - Downloading Data:

At this point, the fetch-pack process looks at what objects it has and responds with the objects that it needs by sending "want" and then the SHA it wants. It sends all the objects it already has with "have" and then the SHA.

During a fetch, the server can list references that it has and that the client may wish to fetch. These are the advertised references.

like image 136
Joe Avatar answered Oct 14 '22 21:10

Joe