static git_repository *repo;
static const char *relpath = "";
-static const char *repodir;
static char description[255] = "Repositories";
static char *name = "";
const git_error *e = NULL;
FILE *fp;
char path[PATH_MAX], repodirabs[PATH_MAX + 1];
+ const char *repodir;
int i, ret = 0;
if (pledge("stdio rpath", NULL) == -1)
static const char *repodir;
static char *name = "";
-static char *strippedname;
+static char *strippedname = "";
static char description[255];
static char cloneurl[1024];
static int haslicense, hasreadme, hassubmodules;
}
int
-writefilestree(FILE *fp, git_tree *tree, const char *branch, const char *path)
+writefilestree(FILE *fp, git_tree *tree, const char *path)
{
const git_tree_entry *entry = NULL;
git_submodule *module = NULL;
break;
case GIT_OBJ_TREE:
/* NOTE: recurses */
- ret = writefilestree(fp, (git_tree *)obj, branch,
+ ret = writefilestree(fp, (git_tree *)obj,
entrypath);
git_object_free(obj);
if (ret)
}
int
-writefiles(FILE *fp, const git_oid *id, const char *branch)
+writefiles(FILE *fp, const git_oid *id)
{
git_tree *tree = NULL;
git_commit *commit = NULL;
if (!git_commit_lookup(&commit, repo, id) &&
!git_commit_tree(&tree, commit))
- ret = writefilestree(fp, tree, branch, "");
+ ret = writefilestree(fp, tree, "");
fputs("</tbody></table>", fp);
fp = efopen("files.html", "w");
writeheader(fp, "Files");
if (head)
- writefiles(fp, head, "HEAD");
+ writefiles(fp, head);
writefooter(fp);
fclose(fp);