Method: Ed::Delegator#commit

Defined in:
lib/ed/delegator.rb

#commit(commit, &block) ⇒ void Also known as: tag, branch

This method returns an undefined value.

Parameters:

  • commit (String)

    A valid git commit, or git commit reference(tag or branch name).

  • block (Proc)

    Executed while the repository has switched to commit.



32
33
34
# File 'lib/ed/delegator.rb', line 32

def commit commit, &block
  @__delegate__.commit(commit, &block)
end