2 * GIT - The information manager from hell
4 * Copyright (C) Linus Torvalds, 2005
6 #include "git-compat-util.h"
8 static void report(const char *prefix, const char *err, va_list params)
10 fputs(prefix, stderr);
11 vfprintf(stderr, err, params);
15 void usage(const char *err)
17 fprintf(stderr, "usage: %s\n", err);
21 void die(const char *err, ...)
25 va_start(params, err);
26 report("fatal: ", err, params);
31 int error(const char *err, ...)
35 va_start(params, err);
36 report("error: ", err, params);