From: Hiltjo Posthuma Date: Fri, 29 Apr 2016 14:39:33 +0000 (+0200) Subject: suppress meaningless error codes when a repo can't be opened (similar to stagit-index) X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=671f4e91007a149e88b57788fc76059fbeac152e;p=forks%2Fstagit.git suppress meaningless error codes when a repo can't be opened (similar to stagit-index) --- diff --git a/stagit.c b/stagit.c index 1102915..7215c94 100644 --- 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; }