Sha256: 3b4548a9354faa6a98b901493252b10e5f3e5ede4e3e49c94ebc9deb6cbed6f5

Contents?: true

Size: 410 Bytes

Versions: 2

Compression:

Stored size: 410 Bytes

Contents

module Granify
  module Controller
    class Branch < Controller::Base
      def current
        Notify.info("Current branch: #{Command::Exec.git_current_branch}")
      end

      def recent
        # TODO: format this
        Notify.spit Command::Exec.global("git for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname)' refs/heads refs/remotes --count=10")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rbtils-0.0.2 lib/controllers/branch.rb
rbtils-0.0.1 lib/controllers/branch.rb