 defmodule Bench do
-  defmodule GitStrategy do
+  defmodule GitLoadSave do
     @file_name "benchee.run"
 
-    defp app, do: to_string(Mix.Project.config()[:app])
+    def config(branch \\ "master") do
+      case load(branch) do
+        nil -> [save: save()]
+        load -> [load: load, save: save()]
+      end
+    end
 
-    defp branch,
-      do:
-        "git"
-        |> System.cmd(["rev-parse", "--abbrev-ref", "HEAD"])
-        |> trim()
-
-    defp trim({str, 0}), do: String.trim(str)
-
-    def load(branch \\ "master") do
+    defp load(branch \\ "master") do
       case branch == branch() do
         true ->
           nil

        formatters: [
          Benchee.Formatters.Console
        ]
      ] ++ GitStrategy.config()

    Benchee.run(
      %{"ref" => fun()},

      end
    end

    defp save do
      tag = branch()

      path =
