Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.
/ git-pair.idea Public archive

Plugin for IntelliJ that helps you do pair programming.

License

Notifications You must be signed in to change notification settings

RoboPlugins/git-pair.idea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archived

JetBrains has made it difficult to create a plugin that works this way. First "actions" are meant to be statically registered, it's possible to create dynamic actions, but it's poorly documented: https://plugins.jetbrains.com/docs/intellij/grouping-action.html#adding-child-actions-to-the-dynamic-group Actions would be an item to click on in a dialog, like a pairing partner.

Second, after I go through the work of making actions dynamic, I still won't have a popup, or be able to dock the popup into the bottom corner because they removed the old APIs that I was using. And finally, after years of getting deprication warnings users are experiencing flat out crashing from removed apis: #17.

I think it will be about a week of work to fix these issues, I tried a few nights. But I don't have the motivation to work on it because I have many other better projects to work on.

Let me know if you want to be the maintainer or to remove the git-pair plugin from the marketplace. I've already marked the highest version as 203.

-- Robert (May 10th 2021)

Git Pair

Pair programming plugin for the Idea platform (IntelliJ, AppCode, Android Studio).

Like Pivotal Lab's Git Scripts, but for the best IDE ever built.

On my teams we often ask "Wait, who's paired right now?" It's a bit inconvenient to find that information. This plugin shows on screen who is paired, and allows you to change the pair. Modeled after the git4idea plugin which allows you to see the branch you are on and quickly switch branches.

Choose a pair Choose a different pair

Installation

Add a .pairs file to your project's root folder in this format:

# This is for the awesome git pair https://plugins.jetbrains.com/plugin/8135 plugin.
# But it works with the Pivotal Labs `git pair` plugin too.

pairs:
  gc: Grumpy Cat;grumpy.cat
  pp: Pinkie Pie; pinkie.pie
  rw: Robert A. Wallis; robert.wallis

email:
  prefix:
  domain: example.com

global: true

Multiple Domains

Maybe you have contractors that have different domains, or maybe you pair with personal email addresses. How can you configure your .pairs file to support multiple domains?

# This is for the awesome git pair https://plugins.jetbrains.com/plugin/8135 plugin.
# But it works with the Pivotal Labs `git pair` plugin too.

pairs:
  gc: Grumpy Cat
  rw: Robert Wallis

email_addresses:
  gc: grumpy.cat@example.com
  rw: smilingrob@gmail.com

The domain chosen is in alphabetical order based on name. So in the example above, example.com will always be chosen if Grumpy Cat pairs with Robert because "G" comes before "R". And the commit email will be grumpy.cat+smilingrob@example.com.

FAQ

Why not just use the command line?

Because the current git pair is not visible on the screen at a glance. And typing git pair will reset your pair to nothing.

You could use the pivotal scripts since this plugin will not work in XCode or Visual Studio. On the other hand, there's always AppCode and CLion... (I can haz free licences jetbrains? For testing my plugin?)

Why not just do a pull-request on the git4idea plugin?

Because git pair is a not in core git, it's a plugin for git. Not everyone that uses git, also does pair programming.