stagit

opinionated personal fork of codemadness.org/git/stagit
Log | Files | Refs | README | LICENSE

commit 7d13dbdd67231574bb6e15c5c5ec4d691f72b06e
parent 36befa90947c8e876ab75bb55f064cef795b0f07
Author: quantumish <freifeld.david@gmail.com>
Date:   Sun,  9 Aug 2026 20:47:25 -0700

Fix obvious compilation error, report index errors as they occur

Diffstat:
Mstagit-index.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/stagit-index.c b/stagit-index.c @@ -140,11 +140,13 @@ writelog(FILE *fp) if (git_oid_fromstr(&id, last_development) && git_revwalk_next(&id, w)) { + fprintf(stderr, "failed to get good commit id for %s", name); ret = -1; goto err; } if (git_commit_lookup(&commit, repo, &id)) { + fprintf(stderr, "failed get commit info for %s\n", name); ret = -1; goto err; } @@ -212,7 +214,7 @@ main(int argc, char *argv[]) writeheader(stdout); - (((for (i = 1; i < argc; i++) { + for (i = 1; i < argc; i++) { repodir = argv[i]; if (!realpath(repodir, repodirabs)) err(1, "realpath");