Skip to content

Commit

Permalink
chore(commit): add commit field for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed May 16, 2022
1 parent 1eeb097 commit be6fadb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: git-repository
version: 1.1.3
version: 1.1.4

development_dependencies:
ameba:
Expand Down
3 changes: 3 additions & 0 deletions src/git-repository/commit.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ struct GitRepository::Commit
getter author : String?
getter date : String?

getter commit : String

def initialize(
@hash : String,
@subject : String,
@author : String? = nil,
@date : String? = nil
)
@commit = @hash
end
end

0 comments on commit be6fadb

Please sign in to comment.