Re: [PATCH 3/4] cat-file: add --batch-disk-sizes option
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jul 8, 2013, 11:04 UTC
- Message-ID
- <CACsJy8A8ZO3DL8Vr=S1G-3yiJz3WaZ-7jV_eA+v6rPAWrd9NAw@mail.gmail.com>
- In-Reply-To
- <7vtxk645vp.fsf@alter.siamese.dyndns.org>
un Mon, Jul 8, 2013 at 12:49 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> Jeff King <peff@peff.net> writes: > >> Perhaps we need >> >> git cat-file --batch-format="%(disk-size) %(object)" >> >> or similar.
This is what I wanted to do with the in for-each-ref's pretty formatting [1]. I used to hack cat-file --batch to extract info I needed for experimenting with various pack index extensions. If you are not in hurry, maybe we can introduce something similar to your syntax, but applicable for all for-each-ref, branch and log family. Ram, are you still interested in the awesome branch series?
> I agree with your reasoning. It may be simpler to give an interface > to ask for which pieces of info, e.g. --batch-cols=size,disksize, > without giving the readers a flexible "format".
[1] http://thread.gmane.org/gmane.comp.version-control.git/227057/focus=227223 -- Duy