remove dead code
This commit is contained in:
parent
649b87bedd
commit
317786d219
1 changed files with 0 additions and 6 deletions
|
@ -184,12 +184,6 @@ commit commitmode allowempty message branch parentrefs repo =
|
||||||
update' branch sha repo
|
update' branch sha repo
|
||||||
return $ Just sha
|
return $ Just sha
|
||||||
Nothing -> return Nothing
|
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. -}
|
{- Same as commit but without updating any branch. -}
|
||||||
commitSha :: CommitMode -> Bool -> String -> [Ref] -> Repo -> IO (Maybe Sha)
|
commitSha :: CommitMode -> Bool -> String -> [Ref] -> Repo -> IO (Maybe Sha)
|
||||||
|
|
Loading…
Reference in a new issue