2014-12-22 19:32:51 +00:00
|
|
|
{- git diff-tree item
|
|
|
|
-
|
2015-01-21 16:50:09 +00:00
|
|
|
- Copyright 2012 Joey Hess <id@joeyh.name>
|
2014-12-22 19:32:51 +00:00
|
|
|
-
|
2019-03-13 19:48:14 +00:00
|
|
|
- Licensed under the GNU AGPL version 3 or higher.
|
2014-12-22 19:32:51 +00:00
|
|
|
-}
|
|
|
|
|
|
|
|
module Git.DiffTreeItem (
|
|
|
|
DiffTreeItem(..),
|
|
|
|
) where
|
|
|
|
|
|
|
|
import System.Posix.Types
|
2020-04-07 15:54:27 +00:00
|
|
|
import qualified Data.ByteString as S
|
2014-12-22 19:32:51 +00:00
|
|
|
|
|
|
|
import Git.FilePath
|
|
|
|
import Git.Types
|
|
|
|
|
|
|
|
data DiffTreeItem = DiffTreeItem
|
|
|
|
{ srcmode :: FileMode
|
|
|
|
, dstmode :: FileMode
|
2020-01-07 15:35:17 +00:00
|
|
|
, srcsha :: Sha -- null sha if file was added
|
|
|
|
, dstsha :: Sha -- null sha if file was deleted
|
2020-04-07 15:54:27 +00:00
|
|
|
, status :: S.ByteString
|
2014-12-22 19:32:51 +00:00
|
|
|
, file :: TopFilePath
|
|
|
|
} deriving Show
|