![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Allow you to commit with more than one person, e.g. Pair programming or Mob programming.
When pairing or doing mob programming on github projects, git does not allow us to commit with all the names of people who contributed. gitpair allows you to setup your team members and commit as normal. It then changes your commit based on the list of people referenced in the commit message.
Each author will randomly be credited with commiter or authorship, so that we can each be credited in our github contributions view !
gitpair does not require you to change the way you commit. Simplify use the git commit
command or your favorite tool!
The following two commits
$ commit -am "JBH|BDO|JON Added README file"
$ commit -am "@jordan @benoit @jonathan Added README file"
are equivalent and will result in the following commit:
commit 5aac6c15b7ea2b8ed6b8daaba01539931b9d9309
Author: Jordan Bartholomew-Harrison, Benoit d'Oncieu and Jon McClennon <bdoncieu@gmail.com>
AuthorDate: Thu Oct 27 22:09:34 2016 +0200
Commit: Jon McClennon <Jon.McClennon@gmail.com>
CommitDate: Thu Oct 27 22:09:34 2016 +0200
BDO|JM: Added README file
The author's name contains the list of all author names while the author and committer emails will be randomly choosen amongst the list of committers. The commit message is normalised as a pipe separated list of initials followed by a dash.
A recent version of node
and npm
.
$ npm install --save gitpair
Update your package.json to run the hook script:
{
...
"scripts": {
"postcommit": "$(npm bin)/gitpair hook"
}
}
$(npm bin)/gitpair install
The installation adds a post-commit
hook at the root of your project in the .git/hooks
directory.
Create a .gitpair
file in your project or home folder:
{
"team": [
{ "name": "Benoit d'Oncieu", "aliases": ["bdo", "benoit"], "email": "bdoncieu@gmail.com" },
{
"name": "Jon McClennon",
"aliases": ["jm", "jon", "jonathan", "jonathanmcclennon"],
"email": "Jon.McClennon@gmail.com"
},
{
"name": "Jordan Bartholomew-Harrison",
"aliases": ["jbh", "jordan", "jordanbharrison"],
"email": "jordan.bh@outlook.com"
}
]
}
In a project, you can get this file started by running:
$(npm bin)/gitpair init
You can use one of two styles of commit messages. The user names used must correspond to one of the aliases you listed in your .gitpair
file (see above).
Github styled | Initials |
---|---|
@bdo @jon Added package.json | BDO|JON: Added package.json |
Notes:
Initials
pattern and the first alias
for each author.Initials
flavor, the semicolon is optional.There are a few questions you need to ask yourself to answer this:
If you answered no to any of these questions, then you likely want to have .gitpair in your local .gitignore.
$(npm bin)/gitpair install -u
$ npm uninstall gitpair
This automatically removes the post-commit
hook if it exists.
FAQs
Allow you to commit with more than one person, e.g. Pair programming or Mob programming.
The npm package gitpair receives a total of 13 weekly downloads. As such, gitpair popularity was classified as not popular.
We found that gitpair demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.