We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 104bb68 commit e374f1fCopy full SHA for e374f1f
src/TimestampMapper.cpp
@@ -112,7 +112,8 @@ std::vector<fs::path> TimestampMapper::createFileList(const std::filesystem::pat
112
std::vector<fs::path> paths;
113
114
// If file_to_index.txt exists, pull the file paths from there.
115
- if (inputDirOrIndexFile.extension() == ".txt") {
+ const std::unordered_set<std::string> exts{ ".txt", ".diff", ".lst" };
116
+ if (exts.contains(inputDirOrIndexFile.extension())) {
117
std::ifstream f(inputDirOrIndexFile);
118
119
if (f.is_open()) {
0 commit comments