use Geef instead of using Geef.Repository

This commit is contained in:
Kazuaki MATSUO
2015-10-17 00:49:23 +09:00
parent 294f1b3536
commit 49896aa65b

View File

@@ -1,10 +1,11 @@
defmodule Geef.Revwalk do
import Geef
use Geef
alias Geef.Object
def stop(walk), do: :geef_revwalk.stop(walk)
def open(repo) when is_pid(repo), do: Geef.Repository.revwalk(repo)
def open(repo) when is_pid(repo), do: Repository.revwalk(repo)
def open!(arg), do: open(arg) |> assert_ok
def push(walk, %Object{type: :commit, id: commit}), do: push(walk, commit)