Skip to content

Commit 2355bee

Browse files
authored
chore(scripts): include untracked files in logid check script (#2533)
This ensure that the script also accounts for files that have not been added to the git index yet.
1 parent d8e9375 commit 2355bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/check-logids.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { runInDir } = require('./run-in-dir');
22

33
// Gather all log ids from the Compass source,
44
async function main() {
5-
const { stdout } = await runInDir(`git grep -H mongoLogId`);
5+
const { stdout } = await runInDir(`git grep --untracked -H mongoLogId`);
66
const mapNumberToSource = new Map();
77

88
for (const line of stdout.split('\n').filter(Boolean)) {

0 commit comments

Comments
 (0)