git cococo: git COmmit COmpletely COmmand output
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
exe
test
.travis.yml
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
appveyor.yml

README.md

git cococo: git COmmit COmpletely COmmand output

License X11 Build Status Build Status

Requirements

  • Git

Installation

git cococo is written by shell script. So we can install following:

$ wget https://raw.githubusercontent.com/nishidayuya/git-cococo/master/exe/git-cococo
$ chmod a+x git-cococo
$ mv git-cococo move-to-PATH-env-directory/

Usage

Run sed command and commit its changes with commit message "run: git cococo sed -i -e s/foo/bar/g a.txt".

$ git cococo sed -i -e s/foo/bar/g a.txt

Replace writed to wrote all of git tracked files and commit with re-runnable commit message.

$ git cococo sh -c 'git ls-files -z | xargs -0 sed -i -e s/writed/wrote/g'

Examples for Rubyists:

$ git cococo --init bundle init
$ git cococo bundle add rake
$ git cococo bundle update nokogiri

$ n=new_awesome_gem && git cococo --init=$n bundle gem $n

$ n=blog && git cococo --init=$n rails new $n
$ git cococo bin/rails generate scaffold post title body:text published_at:datetime
$ git cococo bin/rails db:migrate

Examples for Noders:

$ git cococo --init npm init --yes
$ git cococo npm install --save xmlhttprequest

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/nishidayuya/git-cococo .

Development

  • Ruby: To run rake command and tests.
  • CMake: To build rugged.gem for tests.
  • Shellcheck: To run lint.

Clone this project.

Install related RubyGems and run tests and lint:

$ bundle
$ bundle exec rake

Write some changes with tests.

Run tests and lint:

$ bundle exec rake

Submit pull-request.

Thank you!