From 5e2b4e16ba8f6cb32461b5c09e3872ce50aa13e7 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 14 Jan 2012 12:07:36 -0400 Subject: avoid multiple unnecessary stats of the index file Up to one per file processed. --- Types/BranchState.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Types') diff --git a/Types/BranchState.hs b/Types/BranchState.hs index 777edb32c..e5b2291f3 100644 --- a/Types/BranchState.hs +++ b/Types/BranchState.hs @@ -9,6 +9,7 @@ module Types.BranchState where data BranchState = BranchState { branchUpdated :: Bool, -- has the branch been updated this run? + indexChecked :: Bool, -- has the index file been checked to exist? -- the content of one file is cached cachedFile :: Maybe FilePath, @@ -16,4 +17,4 @@ data BranchState = BranchState { } startBranchState :: BranchState -startBranchState = BranchState False Nothing "" +startBranchState = BranchState False False Nothing "" -- cgit v1.2.3