AmendHub

Download:

jcs

/

amend

/

amendments

/

74

repo: Provide some progress during commit


jcs made amendment 74 about 1 year ago
--- repo.c Thu Jun 2 16:23:27 2022 +++ repo.c Tue Jun 14 09:53:05 2022 @@ -994,6 +994,7 @@ repo_commit(struct repo *repo, struct diffed_file *dif /* store diff */ HLock(diff); + progress("Storing diff..."); size = bile_write(repo->bile, REPO_DIFF_RTYPE, commit_id, *diff, difflen); if (size != difflen) @@ -1002,6 +1003,7 @@ repo_commit(struct repo *repo, struct diffed_file *dif HUnlock(diff); /* store commit */ + progress("Storing commit metadata..."); size = bile_write(repo->bile, REPO_COMMIT_RTYPE, commit_id, commit, commit_len); if (size != commit_len) @@ -1014,6 +1016,7 @@ repo_commit(struct repo *repo, struct diffed_file *dif if (diffed_files[i].flags & DIFFED_FILE_TEXT) { strlcpy((char *)tfilename, diffed_files[i].file->filename, sizeof(tfilename)); + progress("Storing updated %s...", tfilename); CtoPstr(tfilename); /* update file contents if file wasn't deleted */