AmendHub

Download:

jcs

/

amend

/

amendments

/

4

committer: Oops, fix previous


jcs made amendment 4 over 3 years ago
--- committer.c Mon Oct 18 16:47:01 2021 +++ committer.c Tue Oct 19 13:54:42 2021 @@ -145,6 +145,9 @@ committer_close(struct committer *committer) diff_line = NULL; } + if (committer->diffed_files != NULL) + free(committer->diffed_files); + DisposeWindow(committer->win); TEDispose(committer->log_te); DisposHandle(committer->log_scroller); @@ -410,22 +413,17 @@ committer_commit(struct committer *committer) { struct browser *browser; short loglen; - short *selected_files = NULL; - short nselected_files = 0; HLock(committer->log_te); HLock(committer->diff_te); loglen = (*(committer->log_te))->teLength; - nselected_files = browser_selected_file_ids(committer->browser, - &selected_files); - SetCursor(*(GetCursor(watchCursor))); committer_status("Committing changes..."); - repo_commit(committer->browser->repo, selected_files, nselected_files, - committer->diff_adds, committer->diff_subs, + repo_commit(committer->browser->repo, committer->diffed_files, + committer->ndiffed_files, committer->diff_adds, committer->diff_subs, (*(committer->log_te))->hText, loglen, (*(committer->diff_te))->hText, committer->diff_te_len);