Skip to content

Commit

Permalink
Be less permissive with commit parent ID types
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan committed Jan 7, 2017
1 parent 977fa7d commit 92c5881
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion base/libgit2/commit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function commit(repo::GitRepo, msg::AbstractString;
author::Signature = Signature(repo),
committer::Signature = Signature(repo),
tree_id::AbstractGitHash = GitHash(),
parent_ids::Vector{AbstractGitHash}=AbstractGitHash[])
parent_ids::GitHashVector = GitHash[])
# Retrieve tree identifier
if iszero(tree_id)
tree_id = with(GitIndex, repo) do idx; write_tree!(idx) end
Expand Down
2 changes: 2 additions & 0 deletions base/libgit2/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ immutable GitShortHash <: AbstractGitHash
len::Csize_t
end

typealias GitHashVector Union{Vector{GitHash}, Vector{GitShortHash}}

"""
LibGit2.TimeStruct
Expand Down

0 comments on commit 92c5881

Please sign in to comment.