From: Joey Hess Date: Tue, 24 Aug 2021 16:58:14 +0000 (-0400) Subject: unused: Skip the refs/annex/last-index ref that git-annex recently started creating X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~87^2~61 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f9b92c81f6cf43d7d55685194f3dd0a5d61804f6;p=git-annex.git unused: Skip the refs/annex/last-index ref that git-annex recently started creating This was unlikely to cause any problem, but it is unsightly to mention normally hidden refs, and it might have done a bit of unnecessary work to check that ref. Sponsored-by: Noam Kremen on Patreon --- diff --git a/CHANGELOG b/CHANGELOG index c8b15d3c46..b9ad175a2e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -12,6 +12,8 @@ git-annex (8.20210804) UNRELEASED; urgency=medium instead of in a separate pass at the end. This is supported for all special remotes on Linux (except for bittorrent), and for many on other OS's (except for adb, external, gcrypt, hook, and rsync). + * unused: Skip the refs/annex/last-index ref that git-annex recently + started creating. -- Joey Hess Tue, 03 Aug 2021 12:22:45 -0400 diff --git a/Command/Unused.hs b/Command/Unused.hs index d636009573..3019dfa7d7 100644 --- a/Command/Unused.hs +++ b/Command/Unused.hs @@ -241,6 +241,7 @@ withKeysReferencedDiffGitRefs refspec a = do ourbranchend = S.cons (fromIntegral (ord '/')) (Git.fromRef' Annex.Branch.name) ourbranches (_, b) = not (ourbranchend `S.isSuffixOf` b) && not ("refs/synced/" `S.isPrefixOf` b) + && not ("refs/annex/" `S.isPrefixOf` b) && not (is_branchView (Git.Ref b)) getreflog rs = inRepo $ Git.RefLog.getMulti rs