anchor.diff:                                                     {debug_abort_on_error, AbortMsg2}]),
                   rebar_utils:line_count(PatchLines);
               _ ->
  -                get_patch_count(Tag)
  +                get_patch_count(Dir, Tag)
           end,
       {TagVsn, RawRef, RawCount}.
   
  
positive.code:                                                            integer_to_list(Count), RefTag]))
      end.
  
  get_patch_count(RawRef) ->
      AbortMsg = "Getting rev-list of git dep failed in " ++ rebar_dir:get_cwd(),
      Ref = re:replace(RawRef, "\\s", "", [global]),
      Cmd = io_lib:format("git rev-list ~s..HEAD",
                           [Ref]),
  
negative.code:     rebar_utils:line_count(PatchLines).
  
  
  parse_tags(Dir) ->
      %% Don't abort on error, we want the bad return to be turned into 0.0.0
      case rebar_utils:sh("git log --oneline --no-walk --tags --decorate",
                          [{use_stdout, false}, return_on_error, {cd, Dir}]) of
          {error, _} ->
              {undefined, "0.0.0"};
          {ok, Line} ->
  