Remove unneeded fields from the log view. - stagit-gopher - A git gopher fronte… | |
git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2h… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit b6154c444d011845fbe68f6ed2cde1b29880d54d | |
parent a54e5a30a94d08d12ea3ce894b846ad87379d4a4 | |
Author: Christoph Lohmann <[email protected]> | |
Date: Wed, 14 Jun 2017 19:43:44 +0000 | |
Remove unneeded fields from the log view. | |
You can now view the log in lynx without line breaks, on a standard | |
terminal. | |
Diffstat: | |
M stagit.c | 12 +++--------- | |
1 file changed, 3 insertions(+), 9 deletions(-) | |
--- | |
diff --git a/stagit.c b/stagit.c | |
@@ -431,9 +431,9 @@ writeheader(FILE *fp, const char *title) | |
gphtext(fp, description, strlen(description)); | |
fputs("\n", fp); | |
if (cloneurl[0]) { | |
- fputs("[1|git clone ", fp); | |
+ fputs("[h|git clone ", fp); | |
gphlink(fp, cloneurl, strlen(cloneurl)); | |
- fputs("|", fp); | |
+ fputs("|URL:", fp); | |
gphlink(fp, cloneurl, strlen(cloneurl)); | |
fputs("|server|port]\n", fp); | |
} | |
@@ -637,9 +637,6 @@ writelogline(FILE *fp, struct commitinfo *ci) | |
trim(buf, sizeof(buf), ci->author->name); | |
printutf8pad(fp, buf, 25, ' '); | |
} | |
- fprintf(fp, " %5zu", ci->filecount); | |
- fprintf(fp, " %5zu+", ci->addcount); | |
- fprintf(fp, " %5zu-", ci->delcount); | |
fprintf(fp, "|%scommit/%s.gph", relpath, ci->oid); | |
fputs("|server|port]\n", fp); | |
} | |
@@ -1172,10 +1169,7 @@ main(int argc, char *argv[]) | |
writeheader(fp, "Log"); | |
fprintf(fp, "%-16.16s ", "Date"); | |
fprintf(fp, "%-50.50s ", "Commit message"); | |
- fprintf(fp, "%-25.25s ", "Author"); | |
- fprintf(fp, "%5.5s ", "Files"); | |
- fprintf(fp, "%6.6s ", "+"); | |
- fprintf(fp, "%6.6s\n", "-"); | |
+ fprintf(fp, "%-25.25s\n", "Author"); | |
if (cachefile) { | |
/* read from cache file (does not need to exist) */ |