Skip to content

Commit 81c5515

Browse files
committed
wip
1 parent 1ccfeba commit 81c5515

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/mcl/src/src/mcl/commands/dev_commit.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bool inGitIgnore(string file)
3939
continue;
4040
else if (globMatch(file, line))
4141
return true;
42-
else if (file.startsWith(line.strip() ~ "/"))
42+
else if (file.startsWith(line.strip ~ "/"))
4343
return true;
4444
}
4545
return false;
@@ -48,7 +48,7 @@ bool inGitIgnore(string file)
4848
void initGitDiff()
4949
{
5050
// auto status = execute("git diff --name-only -- cached", false).split("\n");
51-
auto status = dirEntries("", SpanMode.depth).map!(a => a.name).array
51+
auto status = dirEntries("", SpanMode.depth).map!(a => a.name.strip).array
5252
.filter!(a =>
5353
!a.startsWith("node_modules") &&
5454
!a.startsWith(".direnv") &&

0 commit comments

Comments
 (0)