Skip to content

Commit

Permalink
changes suggested by @kshyatt
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed Jan 25, 2017
1 parent fc6b868 commit ec8e2f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions base/libgit2/index.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ function read_tree!(idx::GitIndex, tree::GitTree)
@check ccall((:git_index_read_tree, :libgit2), Cint,
(Ptr{Void}, Ptr{Void}), idx.ptr, tree.ptr)
end
function read_tree!(idx::GitIndex, hash::AbstractGitHash)
read_tree!(idx::GitIndex, hash::AbstractGitHash) =
read_tree!(idx, GitTree(repository(idx), hash))
end

function add!{T<:AbstractString}(idx::GitIndex, files::T...;
flags::Cuint = Consts.INDEX_ADD_DEFAULT)
Expand Down
3 changes: 1 addition & 2 deletions base/libgit2/libgit2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,8 @@ function reset!(repo::GitRepo, committish::AbstractString, pathspecs::AbstractSt
end

""" git reset [--soft | --mixed | --hard] <id> """
function reset!(repo::GitRepo, id::GitHash, mode::Cint = Consts.RESET_MIXED)
reset!(repo::GitRepo, id::GitHash, mode::Cint = Consts.RESET_MIXED) =
reset!(repo, GitObject(repo, id), mode)
end

""" git cat-file <commit> """
function cat(repo::GitRepo, spec)
Expand Down

0 comments on commit ec8e2f6

Please sign in to comment.