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