anchor.diff:      end.
   
   %% @doc Return a list of all manifests in the
  -%% active state
  --spec active_manifests(term()) -> [lfs_manifest()].
  -active_manifests(Manifests) ->
  -    IsActive =
  -        fun ({_, ?MANIFEST{state=State}}) ->
  -                State == active orelse State == writing
  -        end,
  -    lists:filter(IsActive, Manifests).
  +%% `active' or `writing' state
  +-spec active_and_writing_manifests(term()) -> [lfs_manifest()].
  +active_and_writing_manifests(Manifests) ->
  +    filter_manifests_by_state(Manifests, [active, writing]).
   
   %% @doc Mark all active manifests
   %% that are not "the most active"
  
positive.code: %%% Internal functions
  %%%===================================================================
  
  orddict_values(OrdDict) ->
      %% orddict's are by definition
      %% represented as lists, so no
  
negative.code: %% export Public API
  -export([new/2,
           active_manifest/1,
           active_and_writing_manifests/1,
           overwritten_UUIDs/1,
           mark_pending_delete/2,
           mark_scheduled_delete/2,
  