Class: Gitlab::Git::DiffTree

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/git/diff_tree.rb

Overview

Represents a tree-ish object for git diff-tree command See: git-scm.com/docs/git-diff-tree

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(left_tree_id, right_tree_id) ⇒ DiffTree

Returns a new instance of DiffTree.



10
11
12
13
# File 'lib/gitlab/git/diff_tree.rb', line 10

def initialize(left_tree_id, right_tree_id)
  @left_tree_id = left_tree_id
  @right_tree_id = right_tree_id
end

Instance Attribute Details

#left_tree_idObject (readonly)

Returns the value of attribute left_tree_id.



8
9
10
# File 'lib/gitlab/git/diff_tree.rb', line 8

def left_tree_id
  @left_tree_id
end

#right_tree_idObject (readonly)

Returns the value of attribute right_tree_id.



8
9
10
# File 'lib/gitlab/git/diff_tree.rb', line 8

def right_tree_id
  @right_tree_id
end