]> git.armaanb.net Git - stagit.git/blobdiff - src/stagit-index.c
do not simplify the history by first-parent
[stagit.git] / src / stagit-index.c
index bad91d196ad4db01a37e06beb8eebd8763e85842..407d7fb7252b76f83d03a615f5007c006d8362a0 100644 (file)
@@ -84,8 +84,8 @@ writeheader(char *path)
        xmlencode(fp, description, strlen(description));
        fputs("</h1>\n", fp);
 
-       FILE *longdesc = fopen("desc.md", "r");
-       if (longdesc == NULL) longdesc = fopen("desc", "r");
+       FILE *longdesc = fopen("description.md", "r");
+       if (longdesc == NULL) longdesc = fopen("description", "r");
        if (longdesc != NULL) {
                char c = fgetc(longdesc);
 #ifdef HAS_CMARK
@@ -104,8 +104,8 @@ writeheader(char *path)
                        c = fgetc(longdesc);
                }
 #endif
+               fclose(longdesc);
        }
-       fclose(longdesc);
 
        fputs("</p>\n<hr/>\n<div id=\"content\">\n"
                "<table id=\"index\"><thead>\n"
@@ -136,7 +136,6 @@ writelog(char *path)
 
        git_revwalk_new(&w, repo);
        git_revwalk_push_head(w);
-       git_revwalk_simplify_first_parent(w);
 
        if (git_revwalk_next(&id, w) ||
            git_commit_lookup(&commit, repo, &id)) {