MCPcopy Create free account
hub / github.com/ByConity/ByConity / gitShow

Function gitShow

programs/git-import/git-import.cpp:1120–1127  ·  view source on GitHub ↗

Runs child process and allows to read the result. * Multiple processes can be run for parallel processing. */

Source from the content-addressed store, hash-verified

1118 * Multiple processes can be run for parallel processing.
1119 */
1120auto gitShow(const std::string & hash)
1121{
1122 std::string command = fmt::format(
1123 "git show --raw --pretty='format:%ct%x00%aN%x00%P%x00%s%x00' --patch --unified=0 {}",
1124 hash);
1125
1126 return ShellCommand::execute(command);
1127}
1128
1129
1130/** Obtain the list of commits and process them.

Callers 1

processLogFunction · 0.85

Calls 1

executeFunction · 0.50

Tested by

no test coverage detected