commit 81e4aad7958996c35ef58efd413ec3b1fbdee711
parent 7d4449400dd3207770db0e1037a3df89d5755c3b
Author: mjkloeckner <martin.cachari@gmail.com>
Date: Thu, 5 Jan 2023 01:50:05 -0300
removed old printf and add new one with nicer output
removed old printf which printed "parsing markdown" (not helpful) and
the path of url to be found (also not helpful), now it only prints the
stripped name of the repository (helpful for knowing which repo we are
parsing)
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/stagit.c b/stagit.c
@@ -1519,6 +1519,8 @@ main(int argc, char *argv[])
if (!strcmp(p, ".git"))
*p = '\0';
+ printf("%s\n", strippedname);
+
/* read description or .git/description */
joinpath(path, sizeof(path), repodir, "description");
if (!(fpread = fopen(path, "r"))) {
@@ -1534,7 +1536,6 @@ main(int argc, char *argv[])
/* read url or .git/url */
joinpath(path, sizeof(path), repodir, "url");
- printf("%s\n", path);
if (!(fpread = fopen(path, "r"))) {
joinpath(path, sizeof(path), repodir, ".git/url");
fpread = fopen(path, "r");
@@ -1578,7 +1579,6 @@ main(int argc, char *argv[])
git_revparse_single(&obj, repo, readmefiles[r]);
const char *s = git_blob_rawcontent((git_blob *)obj);
- printf("parsing markdown\n");
if (r == 1) {
git_off_t len = git_blob_rawsize((git_blob *)obj);
fputs("<div id=\"readme\">", fp);
@@ -1663,7 +1663,6 @@ main(int argc, char *argv[])
if (readme) {
git_revparse_single(&obj, repo, readmefiles[r]);
const char *s = git_blob_rawcontent((git_blob *)obj);
- printf("parsing markdown\n");
if (r == 1) {
git_off_t len = git_blob_rawsize((git_blob *)obj);
fputs("<div id=\"readme\">", fp);