Git Conflict Resolver
A little plugin to help you resolving this nasty conflicts.
Details
Installs
- Total 26K
- Win 8K
- Mac 11K
- Linux 7K
Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 4 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 |
Linux | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 |
Readme
- Source
- raw.githubusercontent.com
Git Conflict Resolver
A Sublime Text plugin to help you solve this nasty merge conflicts.
Commands
Git Conflict Resolver ships with five commands: Find Next Conflict
, Keep Ours
, Keep Theirs
, Keep Common Ancestor
and Show Conflict Files
.
While most of them are pretty self explaining, the Keep Common Ancestor
could need some elaboration:
This command is especially useful for the diff3 conflict type of Git. If you have no idea what I'm talking about then
check it out it's great! (Just search for diff3 on the page)
Some clarification:
The first block always represents our
while the last block is always theirs
.
Configuration
To configure the plugin you can use a user-settings file in your user folder. You can easily access this file over Preferences
-> Git Conflict Resolver
-> Settings - User
.
For information on which settings are available take a look at the commented default-settings file:
{
// The git path
// by default the plugin assumes that git is in your path
"git_path": "git",
// Enable or disable the live matching of conflict areas
// By default the plugin matches live
"live_matching": true,
// The color of the highlighting is called "scope" in Sublime Text,
// to change this color you can choose a different scope.
// This customization isn't easy, since you have to define your own
// scope in your theme file.
"matching_scope": "invalid",
// This option enables the filling the conflict area with a color
// By default the area will just be outlined
"fill_conflict_area": false,
// This option enables the outline of the conflict area
// By default the area will just be outlined
// In Sublime Text 2 the area will only be outlined if "fill_conflict_area" is false
"outline_conflict_area": true,
// This options enable the gutter marks for the different conflict groups
"ours_gutter": true,
"theirs_gutter": true,
"ancestor_gutter": true,
// This option changes the display of the "Show Conflict Files" functionality"
// true: Show only the filesnames ("src/main.js" becomes "main.js")
// false: Show relative path (from the root of the repository)
// By default Git Conflict Resolver only shows the filename
"show_only_filename": true
}
Shortcuts
There are no default shortcuts, to add them open your user keybindings file and add a keybinding like the following:
{ "keys": ["ctrl+alt+f"], "command": "find_next_conflict" },
{ "keys": ["ctrl+alt+o"], "command": "keep", "args": { "keep": "ours" } },
{ "keys": ["ctrl+alt+t"], "command": "keep", "args": { "keep": "theirs" } },
{ "keys": ["ctrl+alt+a"], "command": "keep", "args": { "keep": "ancestor" } },
{ "keys": ["ctrl+alt+c"], "command": "list_conflict_files" }