anchor.diff:  	    {Commit, Ctx#ww_ctx{via=commit}}
       end.
   
  -generic_to_json(ReqData, #ww_ctx{show_all=true}=Ctx, ListFun, _GetFun) ->
  +generic_to_json(ReqData, Ctx, ListFun, GetFun) ->
  +    generic_to_json(ReqData, Ctx, ListFun, GetFun, true).
  +
  +generic_to_json(ReqData, #ww_ctx{show_all=true}=Ctx, ListFun, _GetFun, CommitMatters) ->
       {Commit, NewCtx} = wallaroo_web_common:get_starting_commit(ReqData, Ctx),
  -    {Payload, _, _} = case Commit of 
  -		  none -> dump_json([], ReqData, NewCtx);
  +    {Payload, _, _} = case {generic_to_json, Commit, CommitMatters} of 
  +		  {generic_to_json, none, true} -> dump_json([], ReqData, NewCtx);
   		  _ -> dump_json(ListFun(Commit), ReqData, NewCtx)
   	      end,
       {Payload, ReqData, NewCtx};
  -generic_to_json(ReqData, #ww_ctx{name=Name, commit=Commit}=Ctx, _ListFun, GetFun) ->
  -    wallaroo_web_common:generic_find(Commit, GetFun, Name, ReqData, Ctx).
  +generic_to_json(ReqData, #ww_ctx{name=Name, commit=Commit}=Ctx, _ListFun, GetFun, true) ->
  +    wallaroo_web_common:generic_find(Commit, GetFun, Name, ReqData, Ctx);
  +generic_to_json(ReqData, #ww_ctx{name=Name}=Ctx, _ListFun, GetFun, false) ->
  +    wallaroo_web_common:generic_find_nc(GetFun, Name, ReqData, Ctx).
   
   stringize_sha(<<CommitNum:160/big-unsigned-integer>>) ->
       lists:flatten(io_lib:format("~40.16.0b", [CommitNum])).
  
positive.code: generic_entity_exists_nc(ReqData, Ctx, LookupFun, What) ->
      EntityName = wrq:path_info(name, ReqData),
      case LookupFun(EntityName) of
  	Fail when fail =:= find_failed orelse fail =:= none ->
  	    {false, ReqData, Ctx};
  	Head ->
  	    {true, ReqData, Ctx#ww_ctx={head={What, Head}}}
      end.
  
  
  
negative.code: -module(wallaroo_web_common).
  -export([generic_init/1, generic_entity_exists/3, generic_entity_exists_nc/4, get_starting_commit/2, generic_find/5, generic_find/6,  generic_find_nc/4, generic_find_nc/5, dump_json/3, generic_to_json/4, generic_to_json/5, generic_from_json/5, generic_from_json/6]).
  
  
  -record(ww_ctx, {show_all=false, name, commit, branch, via, head}). 
  