0.0
No release in over 3 years
Low commit activity in last 3 years
This gem adds the git-crecord command. It provides a curses UI to stage/commit git-hunks.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.8, >= 5.8.4
~> 10.1, >= 10.1.1
>= 0.56.0

Runtime

= 1.2.4
 Project Readme

git-crecord

Inspired by crecord mercurial extension, git-crecord is an easy way to commit/stage git changes partially.

Screenshot

Installation

$ gem install git-crecord

Usage

$ git crecord
$ git crecord --untracked-files  # show untracked files
$ git crecord --reverse          # unstage hunks

Key-bindings:

  q      - quit
  s      - stage selection and quit
  c      - commit selection and quit
  j / ↓  - down
  k / ↑  - up
  h / ←  - collapse fold
  l / →  - expand fold
  f      - toggle fold
  g      - go to first line
  G      - go to last line
  C-P    - up to previous hunk / file
  C-N    - down to next hunk / file
  SPACE  - toggle selection
  A      - toggle all selections
  ?      - display help
  R      - force redraw

Configuration

# configure tab-width to four spaces, default is two spaces:
$ git config --global crecord.tabwidth 4

Development

$ git clone https://github.com/mbrendler/git-crecord
$ cd git-crecord
$ bundle install
$ ln -s bin/git-crecord /usr/bin/git-crecord

Tests:

$ bundle exec rake