diff options
author | Joey Hess <joey@kitenet.net> | 2013-11-19 17:08:57 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-11-19 17:08:57 -0400 |
commit | ac540f569f68c910f037e91167f5bd21fb2597f3 (patch) | |
tree | ea10b56d99c16e80b3ad84e0f0120ccca5b2f8f4 /Git/Repair.hs | |
parent | 75dc5d235e0da1517d6098cd1694286d627fb4b7 (diff) |
merge with git-repair
Diffstat (limited to 'Git/Repair.hs')
-rw-r--r-- | Git/Repair.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Git/Repair.hs b/Git/Repair.hs index 270b04182..41d0535b7 100644 --- a/Git/Repair.hs +++ b/Git/Repair.hs @@ -8,6 +8,7 @@ module Git.Repair ( runRepair, runRepairOf, + successfulRepair, cleanCorruptObjects, retrieveMissingObjects, resetLocalBranches, @@ -452,6 +453,9 @@ runRepair forced g = do putStrLn "No problems found." return (True, S.empty, []) +successfulRepair :: (Bool, MissingObjects, [Branch]) -> Bool +successfulRepair = fst3 + runRepairOf :: FsckResults -> Bool -> Maybe FilePath -> Repo -> IO (Bool, MissingObjects, [Branch]) runRepairOf fsckresult forced referencerepo g = do missing <- cleanCorruptObjects fsckresult g |