aboutsummaryrefslogtreecommitdiff
path: root/Git/DiffTree.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-04-09 21:21:35 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-04-09 21:22:35 -0400
commitefd2eaa1cfbefd25778519361121a386a9f40af7 (patch)
tree0716d4db9840a7ea5902768a8d47e1e7ddf27ee8 /Git/DiffTree.hs
parentfc64015a7af4bbc531a1e4bc8741d86609b1f0bf (diff)
spotted a few more places where diff-tree needed --
None of these are very likely at all to ever be ambiguous, since tree refs almost never have symbolic names and the sha is very unlikely to be in the work tree.. But, let's get it right!
Diffstat (limited to 'Git/DiffTree.hs')
-rw-r--r--Git/DiffTree.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Git/DiffTree.hs b/Git/DiffTree.hs
index 5cdcc16bc..5dd4bde2d 100644
--- a/Git/DiffTree.hs
+++ b/Git/DiffTree.hs
@@ -36,12 +36,12 @@ isDiffOf diff f = case getTopFilePath f of
{- Diffs two tree Refs. -}
diffTree :: Ref -> Ref -> Repo -> IO ([DiffTreeItem], IO Bool)
diffTree src dst = getdiff (Param "diff-tree")
- [Param (fromRef src), Param (fromRef dst)]
+ [Param (fromRef src), Param (fromRef dst), Param "--"]
{- Diffs two tree Refs, recursing into sub-trees -}
diffTreeRecursive :: Ref -> Ref -> Repo -> IO ([DiffTreeItem], IO Bool)
diffTreeRecursive src dst = getdiff (Param "diff-tree")
- [Param "-r", Param (fromRef src), Param (fromRef dst)]
+ [Param "-r", Param (fromRef src), Param (fromRef dst), Param "--"]
{- Diffs between a tree and the index. Does nothing if there is not yet a
- commit in the repository. -}