commit f08f28be8b51ef7b0fba91edf90b81330031fc35 from: Mark Jamsek via: Thomas Adam date: Fri Feb 03 15:22:13 2023 UTC zap unused parameter in got_worktree_rebase_complete() ok stsp@ commit - df07831c37c0df70446d6ff85691ae2f6b242320 commit + f08f28be8b51ef7b0fba91edf90b81330031fc35 blob - eb4634b8e5d63d6113f755e500f537b53e0dae2e blob + d012eecaafaa3a264b4fc0b04e4b5a8abddaf9a1 --- got/got.c +++ got/got.c @@ -10426,13 +10426,12 @@ done: static const struct got_error * rebase_complete(struct got_worktree *worktree, struct got_fileindex *fileindex, - struct got_reference *branch, struct got_reference *new_base_branch, - struct got_reference *tmp_branch, struct got_repository *repo, - int create_backup) + struct got_reference *branch, struct got_reference *tmp_branch, + struct got_repository *repo, int create_backup) { printf("Switching work tree to %s\n", got_ref_get_name(branch)); return got_worktree_rebase_complete(worktree, fileindex, - new_base_branch, tmp_branch, branch, repo, create_backup); + tmp_branch, branch, repo, create_backup); } static const struct got_error * @@ -11249,8 +11248,7 @@ cmd_rebase(int argc, char *argv[]) if (STAILQ_EMPTY(&commits)) { if (continue_rebase) { error = rebase_complete(worktree, fileindex, - branch, new_base_branch, tmp_branch, repo, - create_backup); + branch, tmp_branch, repo, create_backup); goto done; } else { /* Fast-forward the reference of the branch. */ @@ -11335,7 +11333,7 @@ cmd_rebase(int argc, char *argv[]) } } else error = rebase_complete(worktree, fileindex, branch, - new_base_branch, tmp_branch, repo, create_backup); + tmp_branch, repo, create_backup); done: free(cwd); free(committer); blob - 444d64fb9897a4e6ab7664069d364358ec7bfacb blob + 4ea02aaea560daeba058d4b8541f5ea222eb7586 --- include/got_worktree.h +++ include/got_worktree.h @@ -332,7 +332,7 @@ const struct got_error *got_worktree_rebase_postpone(s */ const struct got_error *got_worktree_rebase_complete(struct got_worktree *, struct got_fileindex *, struct got_reference *, struct got_reference *, - struct got_reference *, struct got_repository *, int create_backup); + struct got_repository *, int create_backup); /* * Abort the current rebase operation. blob - 439c945312b57aeab0f27bfe4dc1332e5a98c79f blob + 0cbb33afa5333deceb3bf3b9bad3c0ad78e992c0 --- lib/worktree.c +++ lib/worktree.c @@ -7014,9 +7014,9 @@ done: const struct got_error * got_worktree_rebase_complete(struct got_worktree *worktree, - struct got_fileindex *fileindex, struct got_reference *new_base_branch, - struct got_reference *tmp_branch, struct got_reference *rebased_branch, - struct got_repository *repo, int create_backup) + struct got_fileindex *fileindex, struct got_reference *tmp_branch, + struct got_reference *rebased_branch, struct got_repository *repo, + int create_backup) { const struct got_error *err, *unlockerr, *sync_err; struct got_object_id *new_head_commit_id = NULL;