improve layout and comment
This commit is contained in:
parent
50949b11ab
commit
1f65de4085
1 changed files with 3 additions and 4 deletions
|
@ -153,11 +153,10 @@ syncBranch = Git.Ref.under "refs/heads/synced" . fromDirectBranch
|
||||||
remoteBranch :: Remote -> Git.Ref -> Git.Ref
|
remoteBranch :: Remote -> Git.Ref -> Git.Ref
|
||||||
remoteBranch remote = Git.Ref.underBase $ "refs/remotes/" ++ Remote.name remote
|
remoteBranch remote = Git.Ref.underBase $ "refs/remotes/" ++ Remote.name remote
|
||||||
|
|
||||||
|
-- Do automatic initialization of remotes when possible when getting remote
|
||||||
|
-- list.
|
||||||
syncRemotes :: [String] -> Annex [Remote]
|
syncRemotes :: [String] -> Annex [Remote]
|
||||||
syncRemotes ps = do
|
syncRemotes ps = syncRemotes' ps =<< Remote.remoteList' True
|
||||||
-- Get remote list first, doing automatic initialization
|
|
||||||
-- of remotes when possible.
|
|
||||||
syncRemotes' ps =<< Remote.remoteList' True
|
|
||||||
|
|
||||||
syncRemotes' :: [String] -> [Remote] -> Annex [Remote]
|
syncRemotes' :: [String] -> [Remote] -> Annex [Remote]
|
||||||
syncRemotes' ps remotelist = ifM (Annex.getState Annex.fast) ( nub <$> pickfast , wanted )
|
syncRemotes' ps remotelist = ifM (Annex.getState Annex.fast) ( nub <$> pickfast , wanted )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue