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:
f8e30cf
)
simplify, no need for goto
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sat, 7 May 2016 12:34:26 +0000
(14:34 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sat, 7 May 2016 12:34:51 +0000
(14:34 +0200)
stagit.c
patch
|
blob
|
history
diff --git
a/stagit.c
b/stagit.c
index 4048873192d343788c944407fc56c70e5e5f83d2..6a79573fe2791ce9cd83916d203f6797381b7cbc 100644
(file)
--- a/
stagit.c
+++ b/
stagit.c
@@
-866,12
+866,10
@@
writefiles(FILE *fp, const git_oid *id, const char *branch)
"<td>Mode</td><td>Name</td><td class=\"num\">Size</td>"
"</tr>\n</thead><tbody>\n", fp);
- if (git_commit_lookup(&commit, repo, id) ||
- git_commit_tree(&tree, commit))
- goto err;
- ret = writefilestree(fp, tree, branch, "");
+ if (!git_commit_lookup(&commit, repo, id) &&
+ !git_commit_tree(&tree, commit))
+ ret = writefilestree(fp, tree, branch, "");
-err:
fputs("</tbody></table>", fp);
git_commit_free(commit);