Introduction
Introduction Statistics Contact Development Disclaimer Help
treduce scope of repodir, remove unused branch parameter - stagit - static git …
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
commit 6b48169fa5d12348a550d588fa768f670c653da8
parent 82aefe6305b858b5aa329fb357a5cf7639c3522d
Author: Hiltjo Posthuma <[email protected]>
Date: Sun, 12 Mar 2017 19:47:58 +0100
reduce scope of repodir, remove unused branch parameter
Diffstat:
M stagit-index.c | 2 +-
M stagit.c | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/stagit-index.c b/stagit-index.c
t@@ -16,7 +16,6 @@
static git_repository *repo;
static const char *relpath = "";
-static const char *repodir;
static char description[255] = "Repositories";
static char *name = "";
t@@ -157,6 +156,7 @@ main(int argc, char *argv[])
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)
diff --git a/stagit.c b/stagit.c
t@@ -57,7 +57,7 @@ static const char *relpath = "";
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;
t@@ -790,7 +790,7 @@ filemode(git_filemode_t m)
}
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;
t@@ -819,7 +819,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *branc…
break;
case GIT_OBJ_TREE:
/* NOTE: recurses */
- ret = writefilestree(fp, (git_tree *)obj, bran…
+ ret = writefilestree(fp, (git_tree *)obj,
entrypath);
git_object_free(obj);
if (ret)
t@@ -856,7 +856,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *branc…
}
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;
t@@ -868,7 +868,7 @@ writefiles(FILE *fp, const git_oid *id, const char *branch)
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);
t@@ -1153,7 +1153,7 @@ main(int argc, char *argv[])
fp = efopen("files.html", "w");
writeheader(fp, "Files");
if (head)
- writefiles(fp, head, "HEAD");
+ writefiles(fp, head);
writefooter(fp);
fclose(fp);
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.