Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

idx: add dump of CRC to idxDump

  • Loading branch information...
commit f24980e763ed6412068cd21ed3ef5032b640aefa 1 parent 0fc0198
Conrad Parker authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  Git/PackIndex.hs
3  Git/PackIndex.hs
@@ -108,7 +108,8 @@ dumpIdx' idx = do
108 108 o <- fromIntegral <$> idxOffset idx i
109 109 let o' = printf "0x%04x" (o :: Int)
110 110 s <- idxSha1 idx i
111   - putStrLn $ show i ++ ": " ++ o' ++ " SHA: " ++ showDigestBS s
  111 + c <- maybe "" ((" CRC: " ++) . show) <$> idxCRC idx i
  112 + putStrLn $ show i ++ ": " ++ o' ++ " SHA: " ++ showDigestBS s ++ c
112 113
113 114 ------------------------------------------------------------
114 115

0 comments on commit f24980e

Please sign in to comment.
Something went wrong with that request. Please try again.