- commit
- 1cdb24d9de53436b0749fd787dbc7d8e7afbecd5
- parent
- bd1c2cf582bf4d98cdac35a57665197917057dfb
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-03-26 16:10
rm license
Diffstat
M | stagit.c | 13 | ------------- |
1 files changed, 0 insertions, 13 deletions
diff --git a/stagit.c b/stagit.c
@@ -61,8 +61,6 @@ static char *name = ""; 61 61 static char *strippedname = ""; 62 62 static char description[255]; 63 63 static char cloneurl[1024];64 -1 static char *licensefiles[] = { "HEAD:LICENSE", "HEAD:LICENSE.md", "HEAD:COPYING" };65 -1 static char *license;66 64 static char *readmefiles[] = { "HEAD:README", "HEAD:README.md" }; 67 65 static char *readme; 68 66 static long long nlogcommits = -1; /* < 0 indicates not used */ @@ -374,9 +372,6 @@ writeheader(FILE *fp, const char *title) 374 372 fputs("<tr><td></td><td>\n", fp); 375 373 fprintf(fp, "<a href=\"%sfiles.html\">Files</a> | ", relpath); 376 374 fprintf(fp, "<a href=\"%slog.html\">Log</a>", relpath);377 -1 if (license)378 -1 fprintf(fp, " | <a href=\"%sfile/%s.html\">LICENSE</a>",379 -1 relpath, license);380 375 fputs("</td></tr></table>\n<hr/>\n<div id=\"content\">\n", fp); 381 376 } 382 377 @@ -1052,14 +1047,6 @@ main(int argc, char *argv[]) 1052 1047 fclose(fpread); 1053 1048 } 1054 10491055 -1 /* check LICENSE */1056 -1 for (i = 0; i < sizeof(licensefiles) / sizeof(*licensefiles) && !license; i++) {1057 -1 if (!git_revparse_single(&obj, repo, licensefiles[i]) &&1058 -1 git_object_type(obj) == GIT_OBJ_BLOB)1059 -1 license = licensefiles[i] + strlen("HEAD:");1060 -1 git_object_free(obj);1061 -1 }1062 -11063 1050 /* log for HEAD */ 1064 1051 fp = efopen("log.html", "w"); 1065 1052 relpath = "";