projects
/
forks
/
stagit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc7515e
)
suppress meaningless error codes when a repo can't be opened (similar to stagit-index)
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Fri, 29 Apr 2016 14:39:33 +0000
(16:39 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Fri, 29 Apr 2016 14:39:33 +0000
(16:39 +0200)
stagit.c
patch
|
blob
|
history
diff --git
a/stagit.c
b/stagit.c
index 1102915d8303df7af7977d437fe1f3c44870d361..7215c94cb27b94a3b072d62d7680b01e404f3a4a 100644
(file)
--- 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;
}