Skip to content

Commit e374f1f

Browse files
committed
Relax file extension requirements to .txt, .diff, .lst
1 parent 104bb68 commit e374f1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TimestampMapper.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ std::vector<fs::path> TimestampMapper::createFileList(const std::filesystem::pat
112112
std::vector<fs::path> paths;
113113

114114
// If file_to_index.txt exists, pull the file paths from there.
115-
if (inputDirOrIndexFile.extension() == ".txt") {
115+
const std::unordered_set<std::string> exts{ ".txt", ".diff", ".lst" };
116+
if (exts.contains(inputDirOrIndexFile.extension())) {
116117
std::ifstream f(inputDirOrIndexFile);
117118

118119
if (f.is_open()) {

0 commit comments

Comments
 (0)