Project

legit

0.01
No commit activity in last 3 years
No release in over 3 years
A collection of scripts for common git tasks to simplify and improve workflow.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 5.0.1
~> 10.1.0
~> 1.1.2

Runtime

~> 1.8.0
~> 0.18.0.b1
~> 0.18.1
 Project Readme

Legit

Build Status Coverage Status Gem Version Dependency Status Code Climate

Installation

$ gem install legit

Requires ruby >= 1.8.7

Usage

Run legit with no options to see a list of commands and options.

legit checkout

Recommended alias: lco

Fuzzy git checkout

legit checkout example

Setting Up a catch-todos pre-commit Hook

$ git up

  1. Add the following to .git/hooks/pre-commit in the desired repository:
#! /bin/bash
legit catch-todos TODO
  1. Make the hook executable (git will silently ignore your hook otherwise):
chmod +x .git/hooks/pre-commit

Enable or disable catch-todos with the --enable and --disable options

legit catch-todos --disable     # will not check todos until re-enabled
legit catch-todos --enable      # sets it back to normal

Note: some graphical git tools may not run git hooks.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request