remove dead code

This commit is contained in:
Joey Hess 2024-06-10 14:28:58 -04:00
parent 649b87bedd
commit 317786d219
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -184,12 +184,6 @@ commit commitmode allowempty message branch parentrefs repo =
update' branch sha repo
return $ Just sha
Nothing -> return Nothing
where
cancommit tree
| allowempty = return True
| otherwise = case parentrefs of
[p] -> maybe False (tree /=) <$> Git.Ref.tree p repo
_ -> return True
{- Same as commit but without updating any branch. -}
commitSha :: CommitMode -> Bool -> String -> [Ref] -> Repo -> IO (Maybe Sha)