Code Monkey home page Code Monkey logo

magit-gerrit's Introduction

magit-gerrit

Magit plugin for Gerrit Code Review

Installation

If you have a recent Emacs with package.el, you can install magit-gerrit from MELPA.

Otherwise, you'll have to download magit-gerrit.el and ensure it is in a directory in your load-path.

Then:

(require 'magit-gerrit)

;; if remote url is not using the default gerrit port and
;; ssh scheme, need to manually set this variable
(setq-default magit-gerrit-ssh-creds "[email protected]")

;; if necessary, use an alternative remote instead of 'origin'
(setq-default magit-gerrit-remote "gerrit")  

Workflow

  1. Check out branch, make changes, and commit...
  2. Gerrit Push Commit for Code Review => R P
  3. Gerrit Add Reviewer => R A (optional)
  4. Wait for code review and verification (approvals updated in magit-status)
  5. Gerrit Submit Review => R S

Magit Gerrit Configuration

For simple setups, it should be enough to set the default value for magit-gerrit-ssh-creds and magit-gerrit-remote as shown above.

For per project configurations, consider using buffer local or directory local variables.

/home/dev/code/prj1/.dir-locals.el:

((magit-mode .
      ((magit-gerrit-ssh-creds . "[email protected]")
       (magit-gerrit-remote . "gerrit"))))

Author

Brian Fransioli ( [email protected] )

Acknowledgements

Thanks for using and improving magit-gerrit! Enjoy!

Please help improve magit-gerrit! Pull requests welcomed!

magit-gerrit's People

Contributors

terranpro avatar louxiu avatar dougm avatar purcell avatar syohex avatar chmouel avatar stettberger avatar dholm avatar iartarisi avatar jmalmari avatar tarsius avatar mnuessler avatar zeph1e avatar wuqian avatar

Watchers

James Cloos avatar  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.