MCPcopy Create free account
hub / github.com/SpartanJ/eepp / asList

Function asList

src/tools/ecode/plugins/git/git.cpp:205–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205static std::string asList( std::vector<std::string>& files ) {
206 for ( auto& file : files )
207 file = "\"" + file + "\"";
208 return String::join( files );
209}
210
211Git::Result Git::add( std::vector<std::string> files, const std::string& projectDir ) {
212 return gitSimple( String::format( "add --force -- %s", asList( files ) ), projectDir );

Callers 5

addMethod · 0.85
stashMethod · 0.85
restoreMethod · 0.85
resetMethod · 0.85
stashPushMethod · 0.85

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected