| 207 | } |
| 208 | |
| 209 | std::vector<std::string> GitStatusModel::getFiles( const std::string& repo, |
| 210 | uint32_t statusType ) const { |
| 211 | std::vector<std::string> files; |
| 212 | for ( const auto& status : mStatus ) { |
| 213 | if ( status.repo == repo ) { |
| 214 | for ( const auto& type : status.type ) { |
| 215 | if ( static_cast<uint32_t>( type.type ) & statusType ) { |
| 216 | for ( const auto& file : type.files ) |
| 217 | files.push_back( file.file ); |
| 218 | } |
| 219 | } |
| 220 | break; |
| 221 | } |
| 222 | } |
| 223 | return files; |
| 224 | } |
| 225 | |
| 226 | } // namespace ecode |
no test coverage detected