Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39dd90b
commit fb7c8b7
Showing
18 changed files
with
241 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.ComponentModel.Composition; | ||
using System.Windows.Media; | ||
using GitDiffMargin.Git; | ||
using Microsoft.VisualStudio.Text.Classification; | ||
using Microsoft.VisualStudio.Utilities; | ||
|
||
namespace GitDiffMargin | ||
{ | ||
[Export(typeof(EditorFormatDefinition))] | ||
[Name(DiffFormatNames.Addition)] | ||
[UserVisible(true)] | ||
internal sealed class DiffAdditionEditorFormatDefinition : EditorFormatDefinition | ||
{ | ||
public DiffAdditionEditorFormatDefinition() | ||
{ | ||
BackgroundColor = Color.FromRgb(180, 255, 180); | ||
ForegroundCustomizable = false; | ||
DisplayName = "Git Diff Addition"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.ComponentModel.Composition; | ||
using System.Windows.Media; | ||
using GitDiffMargin.Git; | ||
using Microsoft.VisualStudio.Text.Classification; | ||
using Microsoft.VisualStudio.Utilities; | ||
|
||
namespace GitDiffMargin | ||
{ | ||
[Export(typeof(EditorFormatDefinition))] | ||
[Name(DiffFormatNames.Modification)] | ||
[UserVisible(true)] | ||
internal sealed class DiffModificationEditorFormatDefinition : EditorFormatDefinition | ||
{ | ||
public DiffModificationEditorFormatDefinition() | ||
{ | ||
BackgroundColor = Color.FromRgb(160, 200, 255); | ||
ForegroundCustomizable = false; | ||
DisplayName = "Git Diff Modification"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using GitDiffMargin.Git; | ||
using System.ComponentModel.Composition; | ||
using System.Windows.Media; | ||
using Microsoft.VisualStudio.Text.Classification; | ||
using Microsoft.VisualStudio.Utilities; | ||
|
||
namespace GitDiffMargin | ||
{ | ||
[Export(typeof(EditorFormatDefinition))] | ||
[Name(DiffFormatNames.Removed)] | ||
[UserVisible(true)] | ||
internal sealed class DiffRemovedEditorFormatDefinition : EditorFormatDefinition | ||
{ | ||
public DiffRemovedEditorFormatDefinition() | ||
{ | ||
BackgroundColor = Color.FromRgb(255, 160, 180); | ||
ForegroundCustomizable = false; | ||
DisplayName = "Git Diff Removed"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
#region using | ||
|
||
using System.Collections.Generic; | ||
using Microsoft.VisualStudio.Text; | ||
|
||
#endregion | ||
|
||
namespace GitDiffMargin.Git | ||
{ | ||
public interface IGitCommands | ||
{ | ||
IEnumerable<HunkRangeInfo> GetGitDiffFor(string filename); | ||
IEnumerable<HunkRangeInfo> GetGitDiffFor(string filename, ITextSnapshot snapshot); | ||
void StartExternalDiff(string filename); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.