From be6fadbaee706e5f52bed68787aee2d32df1a944 Mon Sep 17 00:00:00 2001 From: Stephen von Takach Date: Mon, 16 May 2022 17:33:18 +1000 Subject: [PATCH] chore(commit): add commit field for backwards compatibility --- shard.yml | 2 +- src/git-repository/commit.cr | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/shard.yml b/shard.yml index b6090ae..8b27239 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: git-repository -version: 1.1.3 +version: 1.1.4 development_dependencies: ameba: diff --git a/src/git-repository/commit.cr b/src/git-repository/commit.cr index 221a25a..c020a0a 100644 --- a/src/git-repository/commit.cr +++ b/src/git-repository/commit.cr @@ -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