Skip to content

Commit

Permalink
Fix the changelog updated ports count. (#1245)
Browse files Browse the repository at this point in the history
Drive by: get rid of from/to
  • Loading branch information
BillyONeal authored Oct 24, 2023
1 parent 9b151e6 commit ce5e3b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/vcpkg/commands.z-changelog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ namespace vcpkg
const auto portsdiff = find_portsdiff(paths, git_commit_id_for_previous_snapshot, "HEAD");

std::string result;
result.append("vcpkg (FROM - TO)\n");
result.append("---\n");
auto total_port_count = paths.get_filesystem()
.get_directories_non_recursive(paths.builtin_ports_directory(), VCPKG_LINE_INFO)
.size();
Expand Down Expand Up @@ -82,7 +80,7 @@ namespace vcpkg
result.append("<details>\n");
fmt::format_to(std::back_inserter(result),
"<summary><b>The following {} ports have been updated:</b></summary>\n\n",
portsdiff.added_ports.size());
portsdiff.updated_ports.size());
result.append("|port|original version|new version|\n");
result.append("|---|---|---|\n");
for (auto&& updated_port : portsdiff.updated_ports)
Expand Down

0 comments on commit ce5e3b7

Please sign in to comment.