stagit
static git repository generator
git clone https://9o.is/git/stagit.git
commit 434bca2ec447501d1446a2a606660b0a9e00857c parent 1f6b516c7bdfe46d80da411bf67e31be29726890 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 29 Apr 2016 16:39:33 +0200 suppress meaningless error codes when a repo can't be opened (similar to stagit-index) Diffstat:
| M | stagit.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stagit.c b/stagit.c @@ -893,7 +893,7 @@ main(int argc, char *argv[]) if ((status = git_repository_open_ext(&repo, repodir, GIT_REPOSITORY_OPEN_NO_SEARCH, NULL)) < 0) { e = giterr_last(); - fprintf(stderr, "error %d/%d: %s\n", status, e->klass, e->message); + fprintf(stderr, "%s: %s\n", argv[0], e->message); return status; }