From 16708110d85714d6ca02623be0cbc99f387e3b77 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 19 Aug 2024 12:50:42 +0200 Subject: GitOpParams: Remove unneeded branch field The 'branch' field is deprecated, not being used by any of the critical Git operations, thus it can be removed. --- src/other_tools/root_maps/commit_git_map.cpp | 4 ---- src/other_tools/root_maps/content_git_map.cpp | 6 ------ src/other_tools/root_maps/distdir_git_map.cpp | 1 - src/other_tools/root_maps/fpath_git_map.cpp | 3 --- src/other_tools/root_maps/tree_id_git_map.cpp | 1 - 5 files changed, 15 deletions(-) (limited to 'src/other_tools/root_maps') diff --git a/src/other_tools/root_maps/commit_git_map.cpp b/src/other_tools/root_maps/commit_git_map.cpp index 9f6943c8..873f7484 100644 --- a/src/other_tools/root_maps/commit_git_map.cpp +++ b/src/other_tools/root_maps/commit_git_map.cpp @@ -201,7 +201,6 @@ void TagAndSetRoot(std::filesystem::path const& repo_root, { repo_root, // target_path repo_info.hash, // git_hash - "", // branch "Keep referenced tree alive" // message }, .op_type = GitOpType::KEEP_TAG}; @@ -281,7 +280,6 @@ void TakeCommitFromOlderGeneration( { source, // target_path repo_info.hash, // git_hash - "", // branch "Tag commit for fetching" // message }, .op_type = GitOpType::KEEP_TAG}; @@ -692,7 +690,6 @@ void EnsureCommit(GitRepoInfo const& repo_info, { storage_config->GitRoot(), // target_path "", // git_hash - "", // branch std::nullopt, // message true // init_bare }, @@ -1104,7 +1101,6 @@ auto CreateCommitGitMap( { repo_root, // target_path "", // git_hash - "", // branch std::nullopt, // message not just_mr_paths->git_checkout_locations.contains( fetch_repo) // init_bare diff --git a/src/other_tools/root_maps/content_git_map.cpp b/src/other_tools/root_maps/content_git_map.cpp index 652f4a25..38aa21a6 100644 --- a/src/other_tools/root_maps/content_git_map.cpp +++ b/src/other_tools/root_maps/content_git_map.cpp @@ -260,7 +260,6 @@ void ResolveContentTree( { storage_config->GitRoot(), // target_path resolved_tree_id, // git_hash - "", // branch "Keep referenced tree alive" // message }, .op_type = GitOpType::KEEP_TREE}; @@ -546,7 +545,6 @@ void HandleLocallyKnownTree( { storage_config->GitRoot(), // target_path "", // git_hash - "", // branch std::nullopt, // message true // init_bare }, @@ -694,7 +692,6 @@ void HandleKnownInOlderGenerationAfterTaggingAndInit( { storage_config->GitRoot(), // target_path tree_id, // git_hash - "", // branch "Keep referenced tree alive" // message }, .op_type = GitOpType::KEEP_TREE}; @@ -760,7 +757,6 @@ void HandleKnownInOlderGenerationAfterTagging( { storage_config->GitRoot(), // target_path "", // git_hash - "", // branch std::nullopt, // message true // init_bare }, @@ -843,7 +839,6 @@ void HandleKnownInOlderGeneration( { source, // target_path *archive_tree_id, // git_hash - "", // branch "Tag commit for fetching" // message }, .op_type = GitOpType::KEEP_TREE}; @@ -1023,7 +1018,6 @@ auto CreateContentGitMap( { storage_config->GitRoot(), // target_path "", // git_hash - "", // branch std::nullopt, // message true // init_bare }, diff --git a/src/other_tools/root_maps/distdir_git_map.cpp b/src/other_tools/root_maps/distdir_git_map.cpp index 9171daae..2d2ad107 100644 --- a/src/other_tools/root_maps/distdir_git_map.cpp +++ b/src/other_tools/root_maps/distdir_git_map.cpp @@ -172,7 +172,6 @@ auto CreateDistdirGitMap( { storage_config->GitRoot(), // target_path "", // git_hash - "", // branch std::nullopt, // message true // init_bare }, diff --git a/src/other_tools/root_maps/fpath_git_map.cpp b/src/other_tools/root_maps/fpath_git_map.cpp index 2de194d9..d4a46486 100644 --- a/src/other_tools/root_maps/fpath_git_map.cpp +++ b/src/other_tools/root_maps/fpath_git_map.cpp @@ -177,7 +177,6 @@ void ResolveFilePathTree( { storage_config->GitRoot(), // target_path resolved_tree_id, // git_hash - "", // branch "Keep referenced tree alive" // message }, .op_type = GitOpType::KEEP_TREE}; @@ -294,7 +293,6 @@ auto CreateFilePathGitMap( { *repo_root, // target_path "", // git_hash - "", // branch }, .op_type = GitOpType::GET_HEAD_ID}; critical_git_op_map->ConsumeAfterKeysReady( @@ -351,7 +349,6 @@ auto CreateFilePathGitMap( { storage_config->GitRoot(), // target_path "", // git_hash - "", // branch std::nullopt, // message true // init_bare }, diff --git a/src/other_tools/root_maps/tree_id_git_map.cpp b/src/other_tools/root_maps/tree_id_git_map.cpp index ad06b34d..3a33d11b 100644 --- a/src/other_tools/root_maps/tree_id_git_map.cpp +++ b/src/other_tools/root_maps/tree_id_git_map.cpp @@ -234,7 +234,6 @@ auto CreateTreeIdGitMap( { storage_config->GitRoot(), // target_path "", // git_hash - "", // branch std::nullopt, // message true // init_bare }, -- cgit v1.2.3