Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
small fix
  • Loading branch information
SandrineP committed Dec 3, 2025
commit 687ffb1e0eb216fc497fb3d2114207d57c179862
4 changes: 2 additions & 2 deletions src/subcommand/merge_subcommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ annotated_commit_list_wrapper merge_subcommand::resolve_heads(const repository_w
return annotated_commit_list_wrapper(std::move(commits_to_merge));
}

annotated_commit_list_wrapper resolve_mergeheads(const repository_wrapper& repo, const std::vector<git_oid> oid_list)
annotated_commit_list_wrapper resolve_mergeheads(const repository_wrapper& repo, const std::vector<git_oid>& oid_list)
{
std::vector<annotated_commit_wrapper> commits_to_merge;
commits_to_merge.reserve(oid_list.size());
Expand Down Expand Up @@ -82,7 +82,7 @@ void perform_fastforward(repository_wrapper& repo, const git_oid& target_oid, in
void merge_subcommand::create_merge_commit(
repository_wrapper& repo,
const index_wrapper& index,
const std::vector<std::string> branches_to_merge,
const std::vector<std::string>& branches_to_merge,
const annotated_commit_list_wrapper& commits_to_merge,
size_t num_commits_to_merge)
{
Expand Down
2 changes: 1 addition & 1 deletion src/subcommand/merge_subcommand.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class merge_subcommand
void create_merge_commit(
repository_wrapper& repo,
const index_wrapper& index,
const std::vector<std::string> branches_to_merge,
const std::vector<std::string>& branches_to_merge,
const annotated_commit_list_wrapper& commits_to_merge,
size_t num_commits_to_merge);

Expand Down