Giter VIP home page Giter VIP logo

coauthor's Introduction

Coauthor

A tool to automatically add co-authors to git commit messages while doing pair programming or mob programming.

Getting started

Currently the only way to get Coauthor to your environment is get it through cargo (the package manager bundled with rust) directly from source (GitHub).

Check your rust version by running rustc --version and ensure you have version 1.35 or higher. If you don't have rust installed, you can install it via homebrew (brew install rust).

With a valid version of rust installed you can install coauthor to your environment by executing this in your terminal (current path doesn't matter):

cargo install --root ~/.cargo --git https://github.com/carlpehrson/coauthor --tag v0.2.0 coauthor

Also, if you haven't already you have to export cargos bin folder into your path to make coauthor available throught your environment (typically put in your ~/.profile):

export PATH="$PATH:$HOME/.cargo/bin"

Usage

Coauthor comes with a few commands at your disposal which can be executed with the coauthor prefix, e.g. coauthor add. The commands can be divided in two groups:

Organizing your list of available coauthors

  • add: Starts a prompt to add an coauthor.
  • list: Lists all stored coauthors.
  • remove [username]: Removes a coauthor from the local machine.

Controlling active coauthors

  • set [username [username ..]]: Updates the git template with predefined coauthors.
  • current: Show a list of active coauthors.
  • clear: Removes all coauthors from the commit template.

You can always type coauthor help to see the list of available commands.

Development

Assuming you have cargo (the package manager bundled with rust) installed you should only have to:

# Run the test suite
cargo test

# Run the tool
cargo run

coauthor's People

Contributors

johantell avatar carlpehrson avatar

Stargazers

Patrick McCartney avatar Emil Bogren avatar 尹名洋 avatar Musa Tokgöz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.