Introduction
Introduction Statistics Contact Development Disclaimer Help
tsimplify + style fixes - stagit - static git page generator
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
commit a73ca0483c5e1e9be3d083b6f15067a7717bf416
parent 673122b0d53c12a35b744d3891bc1b22cf398a1f
Author: Hiltjo Posthuma <[email protected]>
Date: Mon, 7 Dec 2015 19:58:19 +0100
simplify + style fixes
Diffstat:
M urmoms.c | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/urmoms.c b/urmoms.c
t@@ -174,7 +174,7 @@ printcommit(FILE *fp, git_commit *commit)
if ((count = (int)git_commit_parentcount(commit)) > 1) {
fprintf(fp, "<b>Merge:</b>");
- for (i = 0; i < count; ++i) {
+ for (i = 0; i < count; i++) {
git_oid_tostr(buf, 8, git_commit_parent_id(commit, i));
fprintf(fp, " <a href=\"%scommit/%s.html\">%s</a>",
relpath, buf, buf);
t@@ -430,7 +430,7 @@ printcommitatom(FILE *fp, git_commit *commit)
if ((count = (int)git_commit_parentcount(commit)) > 1) {
fprintf(fp, "Merge:");
- for (i = 0; i < count; ++i) {
+ for (i = 0; i < count; i++) {
git_oid_tostr(buf, 8, git_commit_parent_id(commit, i));
fprintf(fp, " %s", buf);
}
t@@ -569,12 +569,10 @@ main(int argc, char *argv[])
fclose(fpread);
}
- /* read LICENSE */
- if (!git_revparse_single(&obj, repo, "HEAD:LICENSE"))
- haslicense = 1;
- /* read README */
- if (!git_revparse_single(&obj, repo, "HEAD:README"))
- hasreadme = 1;
+ /* check LICENSE */
+ haslicense = !git_revparse_single(&obj, repo, "HEAD:LICENSE");
+ /* check README */
+ hasreadme = !git_revparse_single(&obj, repo, "HEAD:README");
/* read LICENSE */
if (!git_revparse_single(&obj, repo, "HEAD:LICENSE")) {
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.