MCPcopy Create free account
hub / github.com/AGWA/git-crypt / parse_version

Function parse_version

commands.cpp:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88static std::vector<int> parse_version (const std::string& str)
89{
90 std::istringstream in(str);
91 std::vector<int> version;
92 std::string component;
93 while (std::getline(in, component, '.')) {
94 version.push_back(std::atoi(component.c_str()));
95 }
96 return version;
97}
98
99static const std::vector<int>& git_version ()
100{

Callers 1

commands.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected