]> dgit.raspbian.org Git - git-annex.git/commitdiff
remove git-annex branch ref from unmerged refs list
authorJoey Hess <joeyh@joeyh.name>
Mon, 27 Dec 2021 17:33:27 +0000 (13:33 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 27 Dec 2021 17:33:27 +0000 (13:33 -0400)
It's queried separately so it was causing extra work to include it.

Annex/Branch.hs

index 75e7cccb45bc49b9586506f714a66a0d81ae9bb3..16f5b6840c3ea601c41000021472e051c766101a 100644 (file)
@@ -27,7 +27,6 @@ module Annex.Branch (
        createMessage,
        commit,
        forceCommit,
-       getBranch,
        files,
        rememberTreeish,
        performTransitions,
@@ -184,7 +183,7 @@ updateTo' pairs = do
         - query operations still work, although they will need to do
         - additional work since the refs are not merged. -}
        catchPermissionDenied
-               (const (return (UpdateFailedPermissions (branchref : map fst tomerge))))
+               (const (return (UpdateFailedPermissions (map fst tomerge))))
                (go branchref tomerge)
   where
        excludeset s = filter (\(r, _) -> S.notMember r s)
@@ -463,7 +462,7 @@ commitIndex' jl branchref message basemessage retrynum parents = do
 
 {- Lists all files on the branch. including ones in the journal
  - that have not been committed yet. There may be duplicates in the list. -}
-tfiles :: Annex ([RawFilePath], IO Bool)
+files :: Annex ([RawFilePath], IO Bool)
 files = do
        _  <- update
        (bfs, cleanup) <- branchFiles