Module: Zenflow::BranchCommands::Diff

Included in:
Zenflow::BranchCommand
Defined in:
lib/zenflow/helpers/branch_commands/diff.rb

Class Method Summary collapse

Class Method Details

.included(thor) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/zenflow/helpers/branch_commands/diff.rb', line 5

def self.included(thor)
  thor.class_eval do

    desc "diff", "Launch a diff against the latest code"
    def diff
      Zenflow::Log("Displaying diff with #{branch(:source)}")
      Zenflow::Shell["git difftool #{branch(:source)}"]
    end

  end
end