Граф коммитов

3 Коммитов

Автор SHA1 Сообщение Дата
Michael Haggerty 5c102720e1 Upgrade to Go 1.13.4 and set up for use with Go modules 2019-12-04 14:33:37 +01:00
Michael Haggerty e233874f69 ensure-go-installed is meant to be sourced, not executed
Rename it and make it non-executable to prevent confusion.
2018-01-27 17:04:00 +01:00
Michael Haggerty 568e76994d Implement the main command, `git-sizer`
It can compute various dimensions about a tree object in a Git
repository, in a way that is robust against git bombs.

For now it must be passed the path to a Git repository and one or more
tree object specifications (like `HEAD^{tree}` or `HEAD:src`). That is
likely to change.

To avoid starting up lots of processes, we use `git cat-file --batch`
to read trees. But for blobs we only need to know the size, so use
`git cat-file --batch-check` for blobs. This unfortunately means that
we need to keep two `git` processes running, which means paying the
git startup time twice.
2018-01-27 16:55:53 +01:00