logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/etc_portage.git

0013-stagit.c-Remove-b-or-replace-to-strong.patch (4384B)


  1. From 0ab9f0759098f632528b605e35d8664eee7df305 Mon Sep 17 00:00:00 2001
  2. From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
  3. Date: Mon, 31 Jul 2017 09:02:10 +0200
  4. Subject: [PATCH 13/22] stagit.c: Remove <b> (or replace to strong)
  5. ---
  6. stagit.c | 33 ++++++++++++++++-----------------
  7. 1 file changed, 16 insertions(+), 17 deletions(-)
  8. diff --git a/stagit.c b/stagit.c
  9. index 2be3d6b..aa1ea11 100644
  10. --- a/stagit.c
  11. +++ b/stagit.c
  12. @@ -430,21 +430,21 @@ writeblobhtml(FILE *fp, const git_blob *blob)
  13. void
  14. printcommit(FILE *fp, struct commitinfo *ci)
  15. {
  16. - fprintf(fp, "<b>commit</b> <a href=\"%scommit/%s.html\">%s</a>\n",
  17. + fprintf(fp, "<strong>commit:</strong> <a href=\"%scommit/%s.html\">%s</a>\n",
  18. relpath, ci->oid, ci->oid);
  19. if (ci->parentoid[0])
  20. - fprintf(fp, "<b>parent</b> <a href=\"%scommit/%s.html\">%s</a>\n",
  21. + fprintf(fp, "<strong>parent:</strong> <a href=\"%scommit/%s.html\">%s</a>\n",
  22. relpath, ci->parentoid, ci->parentoid);
  23. if (ci->author) {
  24. - fputs("<b>Author:</b> ", fp);
  25. + fputs("<strong>Author:</strong> ", fp);
  26. xmlencode(fp, ci->author->name, strlen(ci->author->name));
  27. fputs(" &lt;<a href=\"mailto:", fp);
  28. xmlencode(fp, ci->author->email, strlen(ci->author->email));
  29. fputs("\">", fp);
  30. xmlencode(fp, ci->author->email, strlen(ci->author->email));
  31. - fputs("</a>&gt;\n<b>Date:</b> ", fp);
  32. + fputs("</a>&gt;\n<strong>Date:</strong> ", fp);
  33. printtime(fp, &(ci->author->when));
  34. fputc('\n', fp);
  35. }
  36. @@ -480,7 +480,7 @@ printshowfile(FILE *fp, struct commitinfo *ci)
  37. }
  38. /* diff stat */
  39. - fputs("<b>Diffstat:</b>\n<table>", fp);
  40. + fputs("<h2>Diffstat:</h2>\n<table>", fp);
  41. for (i = 0; i < ci->ndeltas; i++) {
  42. delta = git_patch_get_delta(ci->deltas[i]->patch);
  43. @@ -535,7 +535,7 @@ printshowfile(FILE *fp, struct commitinfo *ci)
  44. for (i = 0; i < ci->ndeltas; i++) {
  45. patch = ci->deltas[i]->patch;
  46. delta = git_patch_get_delta(patch);
  47. - fprintf(fp, "<b>diff --git a/<a id=\"h%zu\" href=\"%sfile/", i, relpath);
  48. + fprintf(fp, "<strong>diff --git a/<a id=\"h%zu\" href=\"%sfile/", i, relpath);
  49. xmlencode(fp, delta->old_file.path, strlen(delta->old_file.path));
  50. fputs(".html\">", fp);
  51. xmlencode(fp, delta->old_file.path, strlen(delta->old_file.path));
  52. @@ -543,7 +543,7 @@ printshowfile(FILE *fp, struct commitinfo *ci)
  53. xmlencode(fp, delta->new_file.path, strlen(delta->new_file.path));
  54. fprintf(fp, ".html\">");
  55. xmlencode(fp, delta->new_file.path, strlen(delta->new_file.path));
  56. - fprintf(fp, "</a></b>\n");
  57. + fprintf(fp, "</a></strong>\n");
  58. /* check binary data */
  59. if (delta->flags & GIT_DIFF_FLAG_BINARY) {
  60. @@ -921,8 +921,7 @@ writefiles(FILE *fp, const git_oid *id)
  61. int ret = -1;
  62. fputs("<table id=\"files\"><thead>\n<tr>"
  63. - "<td><b>Mode</b></td><td><b>Name</b></td>"
  64. - "<td class=\"num\" align=\"right\"><b>Size</b></td>"
  65. + "<td>Mode</td><td>Name</td><td class=\"num\">Size</td>"
  66. "</tr>\n</thead><tbody>\n", fp);
  67. if (!git_commit_lookup(&commit, repo, id) &&
  68. @@ -1007,9 +1006,9 @@ writerefs(FILE *fp)
  69. /* print header if it has an entry (first). */
  70. if (++count == 1) {
  71. fprintf(fp, "<h2>%s</h2><table id=\"%s\">"
  72. - "<thead>\n<tr><td><b>Name</b></td>"
  73. - "<td><b>Last commit date</b></td>"
  74. - "<td><b>Author</b></td>\n</tr>\n"
  75. + "<thead>\n<tr><td>Name</td>"
  76. + "<td>Last commit date</td>"
  77. + "<td>Author</td>\n</tr>\n"
  78. "</thead><tbody>\n",
  79. titles[j], ids[j]);
  80. }
  81. @@ -1182,11 +1181,11 @@ main(int argc, char *argv[])
  82. relpath = "";
  83. mkdir("commit", S_IRWXU | S_IRWXG | S_IRWXO);
  84. writeheader(fp, "Log");
  85. - fputs("<table id=\"log\"><thead>\n<tr><td><b>Date</b></td>"
  86. - "<td><b>Commit message</b></td>"
  87. - "<td><b>Author</b></td><td class=\"num\" align=\"right\"><b>Files</b></td>"
  88. - "<td class=\"num\" align=\"right\"><b>+</b></td>"
  89. - "<td class=\"num\" align=\"right\"><b>-</b></td></tr>\n</thead><tbody>\n", fp);
  90. + fputs("<table id=\"log\"><thead>\n<tr><td>Date</td>"
  91. + "<td>Commit message</td>"
  92. + "<td>Author</td><td class=\"num\" align=\"right\">Files</td>"
  93. + "<td class=\"num\" align=\"right\">+</td>"
  94. + "<td class=\"num\" align=\"right\">-</td></tr>\n</thead><tbody>\n", fp);
  95. if (cachefile && head) {
  96. /* read from cache file (does not need to exist) */
  97. --
  98. 2.26.2