Skip to content

Commit

Permalink
Merge pull request #1554 from soulomoon/master
Browse files Browse the repository at this point in the history
ignore files match ignore-glob even if it is explicit provided under arg like `--git` in cmd
  • Loading branch information
ndmitchell authored Jan 14, 2024
2 parents 2aa9211 + 07e086e commit 9d24fe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CmdLine.hs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ getFile ignore (p:ath) exts t file = do
pure [x | x <- xs, drop1 (takeExtension x) `elem` exts, not $ avoidFile x]
else do
isFil <- doesFileExist $ p <\> file
if isFil then pure [p <\> file]
if isFil then
pure (if (ignore (p <\> file)) then [] else [p <\> file])
else do
res <- getModule p exts file
case res of
Expand Down

0 comments on commit 9d24fe1

Please sign in to comment.