diff options
Diffstat (limited to 'Git/DiffTree.hs')
-rw-r--r-- | Git/DiffTree.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Git/DiffTree.hs b/Git/DiffTree.hs index fecc9307c..838114872 100644 --- a/Git/DiffTree.hs +++ b/Git/DiffTree.hs @@ -12,6 +12,7 @@ module Git.DiffTree ( diffTreeRecursive, diffIndex, diffWorkTree, + diffFiles, diffLog, ) where @@ -66,6 +67,10 @@ diffIndex' ref params repo = , return ([], return True) ) +{- Diff between the index and work tree. -} +diffFiles :: [CommandParam] -> Repo -> IO ([DiffTreeItem], IO Bool) +diffFiles = getdiff (Param "diff-files") + {- Runs git log in --raw mode to get the changes that were made in - a particular commit. The output format is adjusted to be the same - as diff-tree --raw._-} |