summaryrefslogtreecommitdiff
path: root/Command/Unused.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Command/Unused.hs')
-rw-r--r--Command/Unused.hs24
1 files changed, 9 insertions, 15 deletions
diff --git a/Command/Unused.hs b/Command/Unused.hs
index 535b9b33e..803debef8 100644
--- a/Command/Unused.hs
+++ b/Command/Unused.hs
@@ -112,21 +112,8 @@ staleBadMsg t = unlines $
unusedMsg :: [(Int, Key)] -> String
unusedMsg u = unusedMsg' u
- ["Some annexed data is no longer used by any files in the current branch:"]
- [dropMsg Nothing,
- "Please be cautious -- are you sure that another branch, or another",
- "repository does not still use this data?"]
-
-remoteUnusedMsg :: Remote.Remote Annex -> [(Int, Key)] -> String
-remoteUnusedMsg r u = unusedMsg' u
- ["Some annexed data on " ++ name ++
- " is not used by any files in the current branch:"]
- [dropMsg $ Just r,
- "Please be cautious -- Are you sure that the remote repository",
- "does not use this data? Or that it's not used by another branch?"]
- where
- name = Remote.name r
-
+ ["Some annexed data is no longer used by any files:"]
+ [dropMsg Nothing]
unusedMsg' :: [(Int, Key)] -> [String] -> [String] -> String
unusedMsg' u header trailer = unlines $
header ++
@@ -134,6 +121,13 @@ unusedMsg' u header trailer = unlines $
["(To see where data was previously used, try: git log --stat -S'KEY')"] ++
trailer
+remoteUnusedMsg :: Remote.Remote Annex -> [(Int, Key)] -> String
+remoteUnusedMsg r u = unusedMsg' u
+ ["Some annexed data on " ++ name ++ " is not used by any files:"]
+ [dropMsg $ Just r]
+ where
+ name = Remote.name r
+
dropMsg :: Maybe (Remote.Remote Annex) -> String
dropMsg Nothing = dropMsg' ""
dropMsg (Just r) = dropMsg' $ " --from " ++ Remote.name r