mirror of
https://github.com/github/semantic.git
synced 2025-01-06 06:46:07 +03:00
Filter out missing blobs.
This commit is contained in:
parent
91ffd5d621
commit
07588d41b1
@ -14,6 +14,7 @@ import Prologue hiding (concurrently, fst, snd, readFile)
|
||||
import qualified Data.ByteString as B
|
||||
import qualified Paths_semantic_diff as Library (version)
|
||||
import qualified Semantic.Task as Task
|
||||
import Source (nonExistentBlob)
|
||||
import System.Directory
|
||||
import System.Environment
|
||||
import System.FilePath.Posix (takeFileName, (-<.>))
|
||||
@ -61,7 +62,7 @@ runParse ParseArguments{..} = do
|
||||
ParsePaths paths -> traverse (uncurry readFile) paths
|
||||
ParseCommit sha paths -> readFilesAtSHA gitDir alternateObjectDirs paths sha
|
||||
ParseStdin -> readBlobsFromHandle stdin
|
||||
Task.runTask . fmap toS $ Task.distributeFoldMap (Semantic.parseAndRenderBlob parseTreeRenderer) blobs
|
||||
Task.runTask . fmap toS $ Task.distributeFoldMap (Semantic.parseAndRenderBlob parseTreeRenderer) (filter (not . nonExistentBlob) blobs)
|
||||
|
||||
-- | A parser for the application's command-line arguments.
|
||||
arguments :: FilePath -> [FilePath] -> ParserInfo Arguments
|
||||
|
Loading…
Reference in New Issue
Block a user