You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CodeCommit::Types::Commit

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb

Overview

Returns information about a specific commit.

Instance Attribute Summary collapse

Instance Attribute Details

#additional_dataString

Any additional data associated with the specified commit.

Returns:

  • (String)


147
148
149
150
151
152
153
154
155
156
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb', line 147

class Commit < Struct.new(
  :commit_id,
  :tree_id,
  :parents,
  :message,
  :author,
  :committer,
  :additional_data)
  include Aws::Structure
end

#authorTypes::UserInfo

Information about the author of the specified commit. Information includes the date in timestamp format with GMT offset, the name of the author, and the email address for the author, as configured in Git.

Returns:



147
148
149
150
151
152
153
154
155
156
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb', line 147

class Commit < Struct.new(
  :commit_id,
  :tree_id,
  :parents,
  :message,
  :author,
  :committer,
  :additional_data)
  include Aws::Structure
end

#commit_idString

The full SHA of the specified commit.

Returns:

  • (String)


147
148
149
150
151
152
153
154
155
156
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb', line 147

class Commit < Struct.new(
  :commit_id,
  :tree_id,
  :parents,
  :message,
  :author,
  :committer,
  :additional_data)
  include Aws::Structure
end

#committerTypes::UserInfo

Information about the person who committed the specified commit, also known as the committer. Information includes the date in timestamp format with GMT offset, the name of the committer, and the email address for the committer, as configured in Git.

For more information about the difference between an author and a committer in Git, see Viewing the Commit History in Pro Git by Scott Chacon and Ben Straub.

Returns:



147
148
149
150
151
152
153
154
155
156
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb', line 147

class Commit < Struct.new(
  :commit_id,
  :tree_id,
  :parents,
  :message,
  :author,
  :committer,
  :additional_data)
  include Aws::Structure
end

#messageString

The commit message associated with the specified commit.

Returns:

  • (String)


147
148
149
150
151
152
153
154
155
156
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb', line 147

class Commit < Struct.new(
  :commit_id,
  :tree_id,
  :parents,
  :message,
  :author,
  :committer,
  :additional_data)
  include Aws::Structure
end

#parentsArray<String>

The parent list for the specified commit.

Returns:

  • (Array<String>)


147
148
149
150
151
152
153
154
155
156
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb', line 147

class Commit < Struct.new(
  :commit_id,
  :tree_id,
  :parents,
  :message,
  :author,
  :committer,
  :additional_data)
  include Aws::Structure
end

#tree_idString

Tree information for the specified commit.

Returns:

  • (String)


147
148
149
150
151
152
153
154
155
156
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb', line 147

class Commit < Struct.new(
  :commit_id,
  :tree_id,
  :parents,
  :message,
  :author,
  :committer,
  :additional_data)
  include Aws::Structure
end