From: june <june@causal.agency>
To: jean-christophe manciot <actionmystique@gmail.com>
Cc: cgit@lists.zx2c4.com
Subject: Re: What does the value of the size column for folders represent?
Date: Sun, 20 Feb 2022 11:31:54 -0500 [thread overview]
Message-ID: <933AB390-9166-451C-B3C5-7441607F7C7B@causal.agency> (raw)
In-Reply-To: <CAKcFC3byrHamdSZdVY8wzD7q+1GKR=sE3iK3Y2_4E7Birk1bVg@mail.gmail.com>
> On Feb 20, 2022, at 11:17, jean-christophe manciot <actionmystique@gmail.com> wrote:
>
> Hi there,
> The value shown for files is as expected the ... exact size of the
> files in bytes.
> But I cannot make sense of that value for folders.
>
> Here is an example at https://git.sdxlive.com/PPA/tree/Ubuntu/pool/stable/l
> - linux-signed folder has the size '5267'
> - its contents total size is ~ 302 MB (as shown by du on a cloned repository)
> - it contains 62 files
>
> Is this an issue or is the cgit size showing something else for folders?
It is showing the size of the tree object[1] in git. This command
should show the same size:
$ git cat-file tree master^{tree}:Ubuntu/pool/stable/l/linux-signed | wc -c
[1]: https://git-scm.com/book/en/v2/Git-Internals-Git-Objects#_tree_objects
prev parent reply other threads:[~2022-02-20 16:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-20 16:17 jean-christophe manciot
2022-02-20 16:31 ` june [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=933AB390-9166-451C-B3C5-7441607F7C7B@causal.agency \
--to=june@causal.agency \
--cc=actionmystique@gmail.com \
--cc=cgit@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).