augustohp / git-pair Goto Github PK
View Code? Open in Web Editor NEWExhibit your pair as an author name on your commits, with only bash and git as dependencies.
License: MIT License
Exhibit your pair as an author name on your commits, with only bash and git as dependencies.
License: MIT License
It would be nice to signal a pair as a different author through changing his e-mail, since that is used by GitHub to display avatars and identify authors.
We should definitely use subaddress extension of e-mails in order to do that but this poses the following problems:
Although none of these issues are blockers, they are problems which should be exposed and dealed in the most acceptable fashion without a configuration file being needed.
Given we are pairing on a git repository with a history, we can use all author names available on the history (and the ones already provided in the pairing standard) to identify which authors we want to pair with.
Given current authors in the repository are: Augusto Pascutti, Ivo Nascimento, Anderson Pereira and Antonio Pinto:
$ git pair in
Local authors name now are: Augusto Pascutti + Ivo Nascimento
$ git pair ap
There are two authors which match "ap" initials:
ape) Anderson Pereira
api) Antonio Pinto
Re-issue the command with an unique initial.
Note that although ap
also matches Augusto Pascutti
we should identify and eliminate him as a possible pair given he is the committer of the session and therefore a constant on the pairing session.
We should prevent people from adding the same author as a pair or two pair authors with the same name:
Expected behaviour is as follows:
$ git pair Nelson
Local authors name now are: Augusto Pascutti + Nelson
$ git pair Nelson
You are already pairing with "Nelson"
$ git pair reset
Local author name now is: Augusto Pascutti
$ git pair "Augusto Pascutti"
You cannot pair with yourself, can you?
When adding a pair with git pair <author name>
, sort names alphabetically so throughout history the same pair has always the same name.
"Instalation" should be "Installation"
Provide some help through:
-h
option.--help
(same as man git-pair
).A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.