Add initial parser for git trees

It doesn't actually parse the files themselves, but it does walk the
object tree and print out the dives and trips it finds.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Linus Torvalds 2014-03-06 19:27:28 -08:00 committed by Dirk Hohndel
parent 6d0011947b
commit cc3a184adf
5 changed files with 303 additions and 1 deletions

View file

@ -344,7 +344,7 @@ static void create_dive_buffer(struct dive *dive, struct membuffer *b)
save_dive_temperature(b, dive);
}
static int report_error(const char *fmt, ...)
int report_error(const char *fmt, ...)
{
struct membuffer b = { 0 };
VA_BUF(&b, fmt);