Class: Changelogger::Commit
- Inherits:
-
Struct
- Object
- Struct
- Changelogger::Commit
- Defined in:
- lib/changelogger/git.rb
Overview
Changelogger::Commit is a plain struct representing a git commit.
Instance Attribute Summary collapse
-
#body ⇒ String
Remaining message body (could be empty).
-
#date ⇒ String
Commit date (YYYY-MM-DD).
-
#sha ⇒ String
Full 40-char SHA.
-
#short ⇒ String
Abbreviated SHA.
-
#subject ⇒ String
First line message.
Instance Attribute Details
#body ⇒ String
Returns Remaining message body (could be empty).
16 |
# File 'lib/changelogger/git.rb', line 16 Commit = Struct.new(:sha, :short, :date, :subject, :body, keyword_init: true) |
#date ⇒ String
Returns Commit date (YYYY-MM-DD).
16 |
# File 'lib/changelogger/git.rb', line 16 Commit = Struct.new(:sha, :short, :date, :subject, :body, keyword_init: true) |
#sha ⇒ String
Returns Full 40-char SHA.
16 |
# File 'lib/changelogger/git.rb', line 16 Commit = Struct.new(:sha, :short, :date, :subject, :body, keyword_init: true) |
#short ⇒ String
Returns Abbreviated SHA.
16 |
# File 'lib/changelogger/git.rb', line 16 Commit = Struct.new(:sha, :short, :date, :subject, :body, keyword_init: true) |
#subject ⇒ String
Returns First line message.
16 |
# File 'lib/changelogger/git.rb', line 16 Commit = Struct.new(:sha, :short, :date, :subject, :body, keyword_init: true) |