diff options
Diffstat (limited to 'Git/RefLog.hs')
-rw-r--r-- | Git/RefLog.hs | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Git/RefLog.hs b/Git/RefLog.hs index f3a9dad38..7c20047ad 100644 --- a/Git/RefLog.hs +++ b/Git/RefLog.hs @@ -14,9 +14,14 @@ import Git.Sha {- Gets the reflog for a given branch. -} get :: Branch -> Repo -> IO [Sha] -get b = mapMaybe extractSha . lines <$$> pipeReadStrict - [ Param "log" - , Param "-g" - , Param "--format=%H" - , Param (fromRef b) - ] +get = get' [] + +get' :: [CommandParam] -> Branch -> Repo -> IO [Sha] +get' ps b = mapMaybe extractSha . lines <$$> pipeReadStrict ps' + where + ps' = + [ Param "log" + , Param "-g" + , Param "--format=%H" + , Param (fromRef b) + ] ++ ps |