isuppress meaningless error codes when a repo can't be opened (similar to stagit-index) - stagit-gopher - A git gopher frontend. (mirror) Err bitreich.org 70 hgit clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ URL:git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ bitreich.org 70 1Log /scm/stagit-gopher/log.gph bitreich.org 70 1Files /scm/stagit-gopher/files.gph bitreich.org 70 1Refs /scm/stagit-gopher/refs.gph bitreich.org 70 1Tags /scm/stagit-gopher/tag bitreich.org 70 1README /scm/stagit-gopher/file/README.gph bitreich.org 70 1LICENSE /scm/stagit-gopher/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 671f4e91007a149e88b57788fc76059fbeac152e /scm/stagit-gopher/commit/671f4e91007a149e88b57788fc76059fbeac152e.gph bitreich.org 70 1parent bc7515e2dcd820b1b5b73f4e6e61e813ae01959f /scm/stagit-gopher/commit/bc7515e2dcd820b1b5b73f4e6e61e813ae01959f.gph bitreich.org 70 hAuthor: Hiltjo Posthuma URL:mailto:hiltjo@codemadness.org bitreich.org 70 iDate: Fri, 29 Apr 2016 16:39:33 +0200 Err bitreich.org 70 i Err bitreich.org 70 isuppress meaningless error codes when a repo can't be opened (similar to stagit-index) Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M stagit.c | 2 +- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 1 insertion(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/stagit.c b/stagit.c /scm/stagit-gopher/file/stagit.c.gph bitreich.org 70 i@@ -893,7 +893,7 @@ main(int argc, char *argv[]) Err bitreich.org 70 i if ((status = git_repository_open_ext(&repo, repodir, Err bitreich.org 70 i GIT_REPOSITORY_OPEN_NO_SEARCH, NULL)) < 0) { Err bitreich.org 70 i e = giterr_last(); Err bitreich.org 70 i- fprintf(stderr, "error %d/%d: %s\n", status, e->klass, e->message); Err bitreich.org 70 i+ fprintf(stderr, "%s: %s\n", argv[0], e->message); Err bitreich.org 70 i return status; Err bitreich.org 70 i } Err bitreich.org 70 i Err bitreich.org 70 .