No commit activity in last 3 years
No release in over 3 years
git branch switcher
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 3.0.0

Runtime

>= 0
>= 4.7
 Project Readme

lita-git-branch-switcher

git branch switcher

Installation

Add lita-git-branch-switcher to your Lita instance's Gemfile:

gem "lita-git-branch-switcher"

Configuration

in lita_config.rb

Lita.configure do |config|
  # required
  config.handlers.git_branch_switcher.repository_path = "/path/to/repository"

  # options
  config.handlers.git_branch_switcher.pull_after_switch = true # default false
  config.handlers.git_branch_switcher.remote = 'github' # default origin
  config.handlers.git_branch_switcher.command_after_switch = %q(rake tmp:clear)
end

Usage

  • current show current branch name
  • switch <branch-name> fetch and checkout a branch
> @bot current
BOT > master
YOU > @bot switch branch-name
BOT > branch-name