gitbr

package module
v0.0.0-...-3ad0e03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

README

git-br

A very simple interactive cli tool to handle your local git branches. Currently in alpha stage.

output

I wrote it because normally I work with tons of local branches and I needed a better way to handle them than git branch.

I know tig has a branches (refs) view, but I wanted to try something to show the changes easier.

install

Download, compile and install with go get -u github.com/gonzaloserrano/git-br/cmd/git-br.

If you don't have $GOPATH/bin in your $PATH, you can for e.g $ cp $GOPATH/bin/git-br /usr/local/bin.

use

Type git br in your repo or provide a path as a first argument.

todo

  • use colored labels for distinguish diff added, modified, deleted
  • if no path is passed, and we are not in the .git dir, look it up in the parent tree
  • display repo path
  • highlight master/develop branches
  • use enter to switch and quite, shift-enter to just switch
  • add delete feature
  • improve performance when moving between lines, add delay + cancelation
  • show origin branches like tig
  • add delete all branches that are already merged feature
  • add live mode: use a goroutine to refresh branches
  • remove columnize dep

license

This program is released under the Apache 2.0 license, see LICENSE file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UIRunner

type UIRunner interface {
	Run() error
}

UIRunner wraps the function to Run an UI

func Open

func Open(path string) (UIRunner, error)

Open returns an UIRunner from a git repository filesystem path.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL