From: Rutger Nijlunsing <rutger@nospam.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Rutger Nijlunsing <git@wingding.demon.nl>, git@vger.kernel.org
Subject: Re: [ANNOUNCE] git-rev-size: calculate sizes of repository
Date: Sun, 20 Aug 2006 19:24:58 +0200 [thread overview]
Message-ID: <20060820172458.GA21362@nospam.com> (raw)
In-Reply-To: <Pine.LNX.4.63.0608201805070.28360@wbgn013.biozentrum.uni-wuerzburg.de>
On Sun, Aug 20, 2006 at 06:09:34PM +0200, Johannes Schindelin wrote:
> Hi,
>
> On Sun, 20 Aug 2006, Rutger Nijlunsing wrote:
>
> > On Sun, Aug 20, 2006 at 03:20:19PM +0200, Johannes Schindelin wrote:
> > > Hi,
> > >
> > > On Sun, 20 Aug 2006, Rutger Nijlunsing wrote:
> > >
> > > > You can also find it on http://www.wingding.demon.nl/git-rev-size.rb
> > >
> > > Ruby is _so_ mainstream. Could I have a Haskell version, pretty please?
> >
> > I _knew_ it... Please go bug someone else. The only thing I did was
> > help someone, and for that I choose my own tools since I do it for
> > fun.
>
> Fair enough.
>
> -- 8< --
> [PATCH] Add git-rev-size
>
> This tool spits out the number of trees, the number of blobs, and the total
> bytes of the blobs for a given rev range.
>
> Most notably, it adds an object hash map structure to the library.
>
> Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
[Hm, the itch seems to be contagious. Better watch out...]
Small comments:
The 'git-rev-size' name was chosen because originally it understood
the same arguments as git-rev-list. You might want to add this popen()
back, or have some other way to share those (might be simple in C). Or
is setup_revisions() enough to have the power of git-rev-list?
If seperate commits have to be given on the command line instead of a
range, the command line limit is hit quite quickly (~780 commits). And
if you'll be using xargs, the hash / cache will be less of an advantage.
The original request was 'for each commit' to get an idea of the size
growth during a project.
'builtin_rev_size_usage' is not referred to in the patch, only defined.
Signed-off-by: Rutger Nijlunsing <git@tux.tmfweb.nl>
> ---
> Makefile | 4 ++
> builtin-rev-size.c | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++
> builtin.h | 1 +
> git.c | 1 +
> hash.c | 50 ++++++++++++++++++++++++++++
> hash.h | 12 +++++++
> 6 files changed, 159 insertions(+), 1 deletions(-)
[snip patch]
--
Rutger Nijlunsing ---------------------------------- eludias ed dse.nl
never attribute to a conspiracy which can be explained by incompetence
----------------------------------------------------------------------
next prev parent reply other threads:[~2006-08-20 17:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-20 10:54 [ANNOUNCE] git-rev-size: calculate sizes of repository Rutger Nijlunsing
2006-08-20 13:20 ` Johannes Schindelin
2006-08-20 15:24 ` Rutger Nijlunsing
2006-08-20 16:09 ` Johannes Schindelin
2006-08-20 16:37 ` Object hash (was: Re: [ANNOUNCE] git-rev-size: calculate sizes of repository) Josef Weidendorfer
2006-08-20 16:51 ` Johannes Schindelin
2006-08-20 17:40 ` Rutger Nijlunsing
2006-08-20 18:41 ` Josef Weidendorfer
2006-08-20 18:47 ` Johannes Schindelin
2006-08-20 17:24 ` Rutger Nijlunsing [this message]
2006-08-20 18:44 ` [ANNOUNCE] git-rev-size: calculate sizes of repository Johannes Schindelin
2006-08-20 21:38 ` Junio C Hamano
2006-08-20 23:36 ` Johannes Schindelin
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=20060820172458.GA21362@nospam.com \
--to=rutger@nospam.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=git@wingding.demon.nl \
/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).