aboutsummaryrefslogtreecommitdiff
path: root/Git/FilePath.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-03-11 16:00:14 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-03-11 16:05:06 -0400
commit92e8a321090bb45e0ae37e4298160f56652b1f1f (patch)
treed59562279f36267414cdd63d756ce74caeeb15e6 /Git/FilePath.hs
parente082d72b6a1afa651ddb5384f0b768ed26298536 (diff)
improve propigation of commits from adjusted branches
Only reverse adjust the changes in the commit, which means that adjustments do not need to be generally cleanly reversable. For example, an adjustment can unlock all locked files, but does not need to worry about files that were originally unlocked when reversing, because it will only ever be run on files that have been changed. So, it's ok if it locks all files when reversed, or even leaves all files as-is when reversed.
Diffstat (limited to 'Git/FilePath.hs')
-rw-r--r--Git/FilePath.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Git/FilePath.hs b/Git/FilePath.hs
index 5af74c067..db576fc8e 100644
--- a/Git/FilePath.hs
+++ b/Git/FilePath.hs
@@ -31,7 +31,7 @@ import qualified System.FilePath.Posix
{- A FilePath, relative to the top of the git repository. -}
newtype TopFilePath = TopFilePath { getTopFilePath :: FilePath }
- deriving (Show, Eq)
+ deriving (Show, Eq, Ord)
{- Path to a TopFilePath, within the provided git repo. -}
fromTopFilePath :: TopFilePath -> Git.Repo -> FilePath