What does parameter size mean in Github Repo info

I am using the Github API to get repo info. There is a "size" parameter in this, it is not written in the github api documentation, which exactly means. Is this the number of lines of code transferred to the repository in bytes?

Here you can see the size parameter in the answer http://developer.github.com/v3/repos/

+4
source share
1 answer

Given that the commands are intended for a full repo (list, get, edit, ...), it should refer to the full size of the elements in this repo, as indicated in " Look at the size of the github repository before cloning it? ".

It seems that in Kb :

  • for small repositories, such as the example repo "HelloWorld" : "size": 140, as soon as I clone it, it registers on my hard drive just below 140 Kb,
  • and for large repositories (for example, git repo itself, more than 40Mo: "size": 40844, ).

Update (February 2013, nulltoken comment )

The answer β€œ Look at the size of the github repository before cloning it? ” Confirms that the size is in Kb for git alternate objects .

Using a disk against a bare repository does not take into account the storage of shared objects and, thus, returns an "incomplete" value through an API call.

+4
source

All Articles