├── .gitattributes
├── .gitignore
├── .gitmodules
├── .vs
└── config
│ └── applicationhost.config
├── BasicSccProvider.Tests
├── BasicSccProvider.Tests.csproj
├── GetFileStatusTest.cs
├── GitFileStatusTrackerTest.cs
├── PackageTest.cs
├── Properties
│ └── AssemblyInfo.cs
└── RepositoryGraphTest.cs
├── BasicSccProvider.sln
├── BasicSccProvider.sln.DotSettings
├── BuildScripts
├── CleanRelease.ps1
├── Lib
│ ├── Interop.COMAdmin.dll
│ ├── Interop.IWshRuntimeLibrary.dll
│ ├── Ionic.Zip.dll
│ ├── MSBuild Extension Pack 4 (x64).wixpdb
│ ├── MSBuild Extension Pack 4 (x86).wixpdb
│ ├── MSBuild.ExtensionPack.BizTalk.dll
│ ├── MSBuild.ExtensionPack.Crm.dll
│ ├── MSBuild.ExtensionPack.Git.dll
│ ├── MSBuild.ExtensionPack.Iis7.dll
│ ├── MSBuild.ExtensionPack.Loggers.dll
│ ├── MSBuild.ExtensionPack.Sql2008.dll
│ ├── MSBuild.ExtensionPack.Sql2012.dll
│ ├── MSBuild.ExtensionPack.Sql2014.dll
│ ├── MSBuild.ExtensionPack.StyleCop.dll
│ ├── MSBuild.ExtensionPack.TaskFactory.Dlr.dll
│ ├── MSBuild.ExtensionPack.TaskFactory.PowerShell.dll
│ ├── MSBuild.ExtensionPack.Tfs2012.dll
│ ├── MSBuild.ExtensionPack.Tfs2013.dll
│ ├── MSBuild.ExtensionPack.dll
│ └── MSBuild.ExtensionPack.dll.config
└── VsixTools.ps1
├── DataServices
├── Blob.cs
├── BlobContent.cs
├── Change.cs
├── Commit.cs
├── GitTreeObject.cs
├── GraphLink.cs
├── GraphNode.cs
├── Ref.cs
├── RepositoryGraph.cs
├── RepositoryInfo.cs
└── Tree.cs
├── Diff
├── BackgroundParser.cs
├── DiffAdditionEditorFormatDefinition.cs
├── DiffFormatNames.cs
├── DiffMargin.cs
├── DiffMarginEnabled.cs
├── DiffMarginFactory.cs
├── DiffModificationEditorFormatDefinition.cs
├── DiffParseResultEventArgs.cs
├── DiffRemovedEditorFormatDefinition.cs
├── DiffUpdateBackgroundParser.cs
├── GitCommands.cs
├── GitTextViewOptions.cs
├── HunkRange.cs
├── HunkRangeInfo.cs
├── IGitCommands.cs
├── ParseResultEventArgs.cs
├── Resources
│ ├── CopyOldText.png
│ ├── NextArrow.png
│ ├── PreviousArrow.png
│ └── Rollback.png
├── View
│ ├── DiffMarginControl.xaml
│ └── DiffMarginControl.xaml.cs
├── ViewModel
│ ├── DiffMarginViewModel.cs
│ └── DiffViewModel.cs
└── WeakReference.cs
├── DiffClassifier
├── DiffClassificationDefinitions.cs
├── DiffClassifier.cs
├── DiffClassifier.csproj
├── DiffClassifierProvider.cs
├── Properties
│ └── AssemblyInfo.cs
└── packages.config
├── GitApi
├── CachingFileSystemWatcher.cs
├── DataServices
│ ├── Change.cs
│ ├── Commit.cs
│ ├── GitTreeObject.cs
│ ├── GraphLink.cs
│ ├── GraphNode.cs
│ ├── Ref.cs
│ └── RepositoryGraph.cs
├── DiffFileInfo.cs
├── Extensions
│ └── StringExtensions.cs
├── GitActionResult.cs
├── GitApi.csproj
├── GitBash.cs
├── GitBashResult.cs
├── GitBranchInfo.cs
├── GitChangesetManager.cs
├── GitCommands.cs
├── GitFileStatus.cs
├── GitFileUpdateEventArgs.cs
├── GitHeadState.cs
├── GitIntellisenseHelper.cs
├── GitRepository.cs
├── GitSccOptions.cs
├── Log.cs
├── Properties
│ └── AssemblyInfo.cs
├── RepositoryManager.cs
└── packages.config
├── GitSccProvider
├── BasicSccProvider.cs
├── ClassDiagram.cd
├── CommandId.cs
├── Diff
│ ├── BackgroundParser.cs
│ ├── DiffAdditionEditorFormatDefinition.cs
│ ├── DiffFormatNames.cs
│ ├── DiffMargin.cs
│ ├── DiffMarginEnabled.cs
│ ├── DiffMarginFactory.cs
│ ├── DiffModificationEditorFormatDefinition.cs
│ ├── DiffParseResultEventArgs.cs
│ ├── DiffRemovedEditorFormatDefinition.cs
│ ├── DiffUpdateBackgroundParser.cs
│ ├── GitCommands.cs
│ ├── GitTextViewOptions.cs
│ ├── HunkRange.cs
│ ├── HunkRangeInfo.cs
│ ├── IGitCommands.cs
│ ├── ParseResultEventArgs.cs
│ ├── Resources
│ │ ├── CopyOldText.png
│ │ ├── NextArrow.png
│ │ ├── PreviousArrow.png
│ │ └── Rollback.png
│ ├── View
│ │ ├── DiffMarginControl.xaml
│ │ └── DiffMarginControl.xaml.cs
│ ├── ViewModel
│ │ ├── DiffMarginViewModel.cs
│ │ └── DiffViewModel.cs
│ └── WeakReference.cs
├── DiffTools.cs
├── ErrorMessages.Designer.cs
├── ErrorMessages.resx
├── ExceptionExtensions.cs
├── GitSccOptions.cs
├── GitSccProvider.csproj
├── GitToolCommands.cs
├── GlobalCommandHook.cs
├── Guids.cs
├── Key.snk
├── License.txt
├── ListViewStyle.xaml
├── MenuResources.Designer.cs
├── MenuResources.resx
├── PendingChangesToolWindow.cs
├── PendingChangesToolWindow.resx
├── PendingChangesView.xaml
├── PendingChangesView.xaml.cs
├── PkgCmd.cs
├── PkgCmd.vsct
├── PlatformUI
│ ├── HeaderColors.cs
│ ├── PlatformColorHelper.cs
│ └── TreeViewColors.cs
├── Properties
│ └── AssemblyInfo.cs
├── ProvideSourceControlProvider.cs
├── ProvideToolsOptionsPageVisibility.cs
├── ResourceDictionary.xaml
├── Resources.Designer.cs
├── Resources.resx
├── Resources
│ ├── Compare.png
│ ├── History.png
│ ├── Images_24bit.bmp
│ ├── Images_32bit.bmp
│ ├── Images_32bit.png
│ ├── Loading.png
│ ├── Patch-Mode-Blue.xshd
│ ├── Patch-Mode-Dark.xshd
│ ├── PendingCheckins.png
│ ├── Product.ico
│ ├── Refresh.png
│ ├── SccGlyphs.bmp
│ ├── SccGlyphs2012.png
│ ├── Switch.png
│ ├── ToolWindowWithEditorCommand.png
│ ├── ToolWindowWithEditorPackage.ico
│ ├── UndoCheckout.png
│ ├── VisualStudio.gitignore
│ └── git.png
├── SccGlyphsHelper.cs
├── SccOnIdleEvent.cs
├── SccProviderOptions.cs
├── SccProviderOptionsControl.cs
├── SccProviderOptionsControl.resx
├── SccProviderService.DocumentEvents.cs
├── SccProviderService.IVsSccChanges.cs
├── SccProviderService.IVsSccCurrentBranch.cs
├── SccProviderService.IVsSccCurrentRepository.cs
├── SccProviderService.IVsSccPublish.cs
├── SccProviderService.SccEvents.cs
├── SccProviderService.SolutionEvents.cs
├── SccProviderService.cs
├── SccProviderSolutionCache.cs
├── Schedulers
│ └── QueuedTaskScheduler.cs
├── StatusBar
│ ├── GitApiStatusBarManager.cs
│ ├── GitStatusBarManager.cs
│ ├── IStatusBarService.cs
│ └── StandardGitStatusBarManager.cs
├── TaskExtensions.cs
├── ToolWindowWithEditor.cs
├── UI
│ ├── BranchPicker.xaml
│ ├── BranchPicker.xaml.cs
│ ├── GitConsole.xaml
│ ├── GitConsole.xaml.cs
│ ├── GitIntellisenseHelper.cs
│ ├── Settings.xaml
│ ├── Settings.xaml.cs
│ ├── StatusBox.xaml
│ └── StatusBox.xaml.cs
├── Utilities
│ ├── GitCommandWrappers.cs
│ ├── IgnoreFileManager.cs
│ ├── SolutionExtensions.cs
│ ├── SwitchBranchInfo.cs
│ └── ThemeHelper.cs
├── ViewModel
│ ├── MainViewModel.cs
│ └── ViewModelLocator.cs
├── app.config
├── git2-a904fc6.dll
├── index.html
├── packages.config
├── solution explorer.png
├── source.extension.cs
├── source.extension.ico
├── source.extension.resx
├── source.extension.vsixmanifest
└── stylesheet.css
├── GitTools
├── GitTools.csproj
├── IgnoreFileManager.cs
└── Properties
│ └── AssemblyInfo.cs
├── GitUI
├── App.xaml
├── App.xaml.cs
├── GitIntellisenseHelper.cs
├── GitUI.csproj
├── GitViewModel.cs
├── HistoryViewCommands.cs
├── MainWindow.xaml
├── MainWindow.xaml.cs
├── Options.cs
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ ├── Resources.resx
│ ├── Settings.Designer.cs
│ └── Settings.settings
├── Resources
│ ├── GitApi2.dll
│ ├── ICSharpCode.AvalonEdit.dll
│ ├── ICSharpCode.SharpZipLib.dll
│ ├── LibGit2Sharp.dll
│ ├── Loading.png
│ ├── Microsoft.Win32.Primitives.dll
│ ├── Microsoft.Windows.Shell.dll
│ ├── Nito.AsyncEx.Concurrent.dll
│ ├── Nito.AsyncEx.Enlightenment.dll
│ ├── Nito.AsyncEx.dll
│ ├── Patch-Mode.xshd
│ ├── System.AppContext.dll
│ ├── System.Collections.Concurrent.dll
│ ├── System.Collections.NonGeneric.dll
│ ├── System.Collections.Specialized.dll
│ ├── System.Collections.dll
│ ├── System.ComponentModel.EventBasedAsync.dll
│ ├── System.ComponentModel.Primitives.dll
│ ├── System.ComponentModel.TypeConverter.dll
│ ├── System.ComponentModel.dll
│ ├── System.Console.dll
│ ├── System.Data.Common.dll
│ ├── System.Diagnostics.Contracts.dll
│ ├── System.Diagnostics.Debug.dll
│ ├── System.Diagnostics.FileVersionInfo.dll
│ ├── System.Diagnostics.Process.dll
│ ├── System.Diagnostics.StackTrace.dll
│ ├── System.Diagnostics.TextWriterTraceListener.dll
│ ├── System.Diagnostics.Tools.dll
│ ├── System.Diagnostics.TraceSource.dll
│ ├── System.Diagnostics.Tracing.dll
│ ├── System.Drawing.Primitives.dll
│ ├── System.Dynamic.Runtime.dll
│ ├── System.Globalization.Calendars.dll
│ ├── System.Globalization.Extensions.dll
│ ├── System.Globalization.dll
│ ├── System.IO.Compression.ZipFile.dll
│ ├── System.IO.Compression.dll
│ ├── System.IO.FileSystem.DriveInfo.dll
│ ├── System.IO.FileSystem.Primitives.dll
│ ├── System.IO.FileSystem.Watcher.dll
│ ├── System.IO.FileSystem.dll
│ ├── System.IO.IsolatedStorage.dll
│ ├── System.IO.MemoryMappedFiles.dll
│ ├── System.IO.Pipes.dll
│ ├── System.IO.UnmanagedMemoryStream.dll
│ ├── System.IO.dll
│ ├── System.Linq.Expressions.dll
│ ├── System.Linq.Parallel.dll
│ ├── System.Linq.Queryable.dll
│ ├── System.Linq.dll
│ ├── System.Net.Http.dll
│ ├── System.Net.NameResolution.dll
│ ├── System.Net.NetworkInformation.dll
│ ├── System.Net.Ping.dll
│ ├── System.Net.Primitives.dll
│ ├── System.Net.Requests.dll
│ ├── System.Net.Security.dll
│ ├── System.Net.Sockets.dll
│ ├── System.Net.WebHeaderCollection.dll
│ ├── System.Net.WebSockets.Client.dll
│ ├── System.Net.WebSockets.dll
│ ├── System.ObjectModel.dll
│ ├── System.Reactive.Core.dll
│ ├── System.Reactive.Interfaces.dll
│ ├── System.Reactive.Linq.dll
│ ├── System.Reactive.PlatformServices.dll
│ ├── System.Reactive.Windows.Threading.dll
│ ├── System.Reflection.Extensions.dll
│ ├── System.Reflection.Primitives.dll
│ ├── System.Reflection.dll
│ ├── System.Resources.Reader.dll
│ ├── System.Resources.ResourceManager.dll
│ ├── System.Resources.Writer.dll
│ ├── System.Runtime.CompilerServices.VisualC.dll
│ ├── System.Runtime.Extensions.dll
│ ├── System.Runtime.Handles.dll
│ ├── System.Runtime.InteropServices.RuntimeInformation.dll
│ ├── System.Runtime.InteropServices.dll
│ ├── System.Runtime.Numerics.dll
│ ├── System.Runtime.Serialization.Formatters.dll
│ ├── System.Runtime.Serialization.Json.dll
│ ├── System.Runtime.Serialization.Primitives.dll
│ ├── System.Runtime.Serialization.Xml.dll
│ ├── System.Runtime.dll
│ ├── System.Security.Claims.dll
│ ├── System.Security.Cryptography.Algorithms.dll
│ ├── System.Security.Cryptography.Csp.dll
│ ├── System.Security.Cryptography.Encoding.dll
│ ├── System.Security.Cryptography.Primitives.dll
│ ├── System.Security.Cryptography.X509Certificates.dll
│ ├── System.Security.Principal.dll
│ ├── System.Security.SecureString.dll
│ ├── System.Text.Encoding.Extensions.dll
│ ├── System.Text.Encoding.dll
│ ├── System.Text.RegularExpressions.dll
│ ├── System.Threading.Overlapped.dll
│ ├── System.Threading.Tasks.Parallel.dll
│ ├── System.Threading.Tasks.dll
│ ├── System.Threading.Thread.dll
│ ├── System.Threading.ThreadPool.dll
│ ├── System.Threading.Timer.dll
│ ├── System.Threading.dll
│ ├── System.ValueTuple.dll
│ ├── System.Xml.ReaderWriter.dll
│ ├── System.Xml.XDocument.dll
│ ├── System.Xml.XPath.XDocument.dll
│ ├── System.Xml.XPath.dll
│ ├── System.Xml.XmlDocument.dll
│ ├── System.Xml.XmlSerializer.dll
│ ├── dragon.png
│ └── netstandard.dll
├── Themes
│ └── Generic.xaml
├── UI
│ ├── BottomToolBar.xaml
│ ├── BottomToolBar.xaml.cs
│ ├── BranchPicker.xaml
│ ├── BranchPicker.xaml.cs
│ ├── CommitBox.xaml
│ ├── CommitBox.xaml.cs
│ ├── CommitDetails.xaml
│ ├── CommitDetails.xaml.cs
│ ├── CommitHead.xaml
│ ├── CommitHead.xaml.cs
│ ├── CommitRemote.xaml
│ ├── CommitRemote.xaml.cs
│ ├── CommitTag.xaml
│ ├── CommitTag.xaml.cs
│ ├── GitConsole.xaml
│ ├── GitConsole.xaml.cs
│ ├── HistoryGraph.xaml
│ ├── HistoryGraph.xaml.cs
│ ├── Loading.xaml
│ ├── Loading.xaml.cs
│ ├── MainToolBar.xaml
│ ├── MainToolBar.xaml.cs
│ ├── MouseHandlingMode.cs
│ ├── PendingChanges.xaml
│ ├── PendingChanges.xaml.cs
│ └── ResourceDictionary.xaml
├── ZoomAndPan
│ ├── AnimationHelper.cs
│ ├── ZoomAndPanControl.cs
│ └── ZoomAndPanControl_IScrollInfo.cs
├── app.config
└── packages.config
├── JGit licence.txt
├── License.txt
├── MiscUtil licence.txt
├── PlatformUI
├── HeaderColors.cs
├── PlatformColorHelper.cs
└── TreeViewColors.cs
├── Properties
└── AssemblyInfo.cs
├── README.md
├── Readme.html
├── Resources
├── Compare.png
├── History.png
├── Images_24bit.bmp
├── Images_32bit.bmp
├── Images_32bit.png
├── Loading.png
├── PendingCheckins.png
├── Product.ico
├── Refresh.png
├── SccGlyphs.bmp
├── SccGlyphs2012.png
├── Switch.png
└── UndoCheckout.png
├── Schedulers
└── QueuedTaskScheduler.cs
├── TODO.md
├── UI
├── BranchPicker.xaml
├── BranchPicker.xaml.cs
├── CommitBox.xaml
├── CommitBox.xaml.cs
├── CommitDetails.xaml
├── CommitDetails.xaml.cs
├── CommitHead.xaml
├── CommitHead.xaml.cs
├── CommitRemote.xaml
├── CommitRemote.xaml.cs
├── CommitTag.xaml
├── CommitTag.xaml.cs
├── GitConsole.xaml
├── GitConsole.xaml.cs
├── GitIntellisenseHelper.cs
├── HistoryGraph.xaml
├── HistoryGraph.xaml.cs
├── Loading.xaml
├── Loading.xaml.cs
├── Settings.xaml
└── Settings.xaml.cs
├── VsixTools.ps1
├── _LibGit2Sharp
├── LibGit2Sharp.dll
├── ProcessForUpdatingLibGit2Sharp.txt
└── git2-a904fc6.dll
├── appveyor.dev.yml
├── appveyor.yml
├── history.html
├── history.md
├── packages
├── MvvmLight.4.1.26.1
│ ├── MvvmLight.4.1.26.1.nuspec
│ └── lib
│ │ └── net40
│ │ ├── GalaSoft.MvvmLight.WPF4.XML
│ │ └── GalaSoft.MvvmLight.WPF4.dll
└── repositories.config
├── sign.bat
├── solution explorer.png
└── vsgallery.html
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/.gitmodules
--------------------------------------------------------------------------------
/BasicSccProvider.Tests/PackageTest.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using Microsoft.VisualStudio.TestTools.UnitTesting;
6 | using Microsoft.VSSDK.Tools.VsIdeTesting;
7 | using Microsoft.VisualStudio.Shell.Interop;
8 | using Microsoft.VisualStudio.Shell;
9 | using EnvDTE;
10 |
11 | namespace BasicSccProvider.Tests
12 | {
13 | ///
14 | /// Integration test for package validation
15 | ///
16 | [TestClass]
17 | public class PackageTest
18 | {
19 | private delegate void ThreadInvoker();
20 |
21 | private TestContext testContextInstance;
22 |
23 | ///
24 | ///Gets or sets the test context which provides
25 | ///information about and functionality for the current test run.
26 | ///
27 | public TestContext TestContext
28 | {
29 | get
30 | {
31 | return testContextInstance;
32 | }
33 | set
34 | {
35 | testContextInstance = value;
36 | }
37 | }
38 |
39 | [TestMethod]
40 | [HostType("VS IDE")]
41 | public void PackageLoadTest()
42 | {
43 | UIThreadInvoker.Invoke((ThreadInvoker)delegate()
44 | {
45 |
46 | //Get the Shell Service
47 | IVsShell shellService = VsIdeTestHostContext.ServiceProvider.GetService(typeof(SVsShell)) as IVsShell;
48 | Assert.IsNotNull(shellService);
49 |
50 | //Validate package load
51 | IVsPackage package;
52 | Guid packageGuid = new Guid("C4128D99-2000-41D1-A6C3-704E6C1A3DE2");
53 | Assert.IsTrue(0 == shellService.LoadPackage(ref packageGuid, out package));
54 | Assert.IsNotNull(package, "Package failed to load");
55 |
56 | });
57 | }
58 |
59 |
60 | ///
61 | /// Create project and check if the hasProjectOpened flag is set.
62 | ///
63 | [TestMethod()]
64 | [HostType("VS IDE")]
65 | public void TestHasProjectOpened()
66 | {
67 | UIThreadInvoker.Invoke((ThreadInvoker)delegate()
68 | {
69 | //Get the global service provider and the dte
70 | IServiceProvider sp = VsIdeTestHostContext.ServiceProvider;
71 | DTE dte = (DTE)sp.GetService(typeof(DTE));
72 | dte.Solution.Open(@"E:\Users\Public\My Projects\GitScc\Publish\TestProjects\UTF8Test\UTF8Test.sln");
73 | });
74 | }
75 |
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/BasicSccProvider.Tests/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("BasicSccProvider.Tests")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("BasicSccProvider.Tests")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("c6686e46-d8d4-4f1c-8098-4b9d8bbaf537")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/BasicSccProvider.sln.DotSettings:
--------------------------------------------------------------------------------
1 |
2 | True
--------------------------------------------------------------------------------
/BuildScripts/CleanRelease.ps1:
--------------------------------------------------------------------------------
1 |
2 |
3 | param (
4 | [string]$gitHubUsername = $null,
5 | [string]$gitHubRepository = $null,
6 | [string]$tagName = $null,
7 | [string]$gitHubApiKey = $null
8 | )
9 |
10 |
11 | function DeleteRelease($releaseId)
12 | {
13 | $deleteReleaseParams = @{
14 | Uri = "https://api.github.com/repos/$gitHubUsername/$gitHubRepository/releases/$releaseId";
15 | Method = 'DELETE';
16 | Headers = @{
17 | Authorization = 'token ' + $gitHubApiKey
18 | }
19 | }
20 | $result = Invoke-RestMethod @deleteReleaseParams
21 | Write-Host "Release Deleted"
22 | }
23 |
24 | function DeleteTag($tag)
25 | {
26 |
27 | $deleteTagParams = @{
28 | Uri = "https://api.github.com/repos/$gitHubUsername/$gitHubRepository/git/refs/tags/$tag";
29 | Method = 'DELETE';
30 | Headers = @{
31 | Authorization = 'token ' + $gitHubApiKey
32 | }
33 | ContentType = 'application/json';
34 | Body = ""
35 | }
36 | Try
37 | {
38 | $result = Invoke-RestMethod @deleteTagParams
39 | Write-Host "Tag Deleted"
40 | }
41 |
42 | Catch
43 | {
44 | Write-Host "Tag Not Found"
45 | }
46 |
47 |
48 | }
49 |
50 |
51 | if ($gitHubUsername.Length -eq 0) {
52 | Write-Host "Parameter -gitHubUsername was not provided, and is required."
53 | return
54 | }
55 |
56 | if ($gitHubRepository.Length -eq 0) {
57 | Write-Host "Parameter -gitHubRepository was not provided, and is required."
58 | return
59 | }
60 |
61 | if ($tagName.Length -eq 0) {
62 | Write-Host "Parameter -tagName was not provided, and is required."
63 | return
64 | }
65 | if ($gitHubApiKey.Length -eq 0) {
66 | Write-Host "Parameter -gitHubApiKey was not provided, and is required."
67 | return
68 | }
69 |
70 | $getReleaseParams = @{
71 | Uri = "https://api.github.com/repos/$gitHubUsername/$gitHubRepository/releases/tags/$tagName";
72 | Method = 'GET';
73 | Headers = @{
74 | Authorization = 'token ' + $gitHubApiKey
75 | }
76 | }
77 |
78 | $relId;
79 |
80 | Try
81 | {
82 | $release = Invoke-RestMethod @getReleaseParams
83 | $relId = $release.id
84 | }
85 | Catch
86 | {
87 | Write-Host "Release not found"
88 | DeleteTag($tagName)
89 | Exit;
90 | }
91 |
92 | if (!$relId)
93 | {
94 | Write-Host "Release ID not found"
95 | DeleteTag($tagName)
96 | Exit;
97 | }
98 |
99 | DeleteRelease($relId)
100 | Start-Sleep -s 3
101 | DeleteTag($tagName)
102 | Start-Sleep -s 3
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
--------------------------------------------------------------------------------
/BuildScripts/Lib/Interop.COMAdmin.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/Interop.COMAdmin.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/Interop.IWshRuntimeLibrary.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/Interop.IWshRuntimeLibrary.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/Ionic.Zip.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/Ionic.Zip.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild Extension Pack 4 (x64).wixpdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild Extension Pack 4 (x64).wixpdb
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild Extension Pack 4 (x86).wixpdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild Extension Pack 4 (x86).wixpdb
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild.ExtensionPack.BizTalk.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild.ExtensionPack.BizTalk.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild.ExtensionPack.Crm.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild.ExtensionPack.Crm.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild.ExtensionPack.Git.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild.ExtensionPack.Git.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild.ExtensionPack.Iis7.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild.ExtensionPack.Iis7.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild.ExtensionPack.Loggers.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild.ExtensionPack.Loggers.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild.ExtensionPack.Sql2008.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild.ExtensionPack.Sql2008.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild.ExtensionPack.Sql2012.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild.ExtensionPack.Sql2012.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild.ExtensionPack.Sql2014.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild.ExtensionPack.Sql2014.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild.ExtensionPack.StyleCop.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild.ExtensionPack.StyleCop.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild.ExtensionPack.TaskFactory.Dlr.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild.ExtensionPack.TaskFactory.Dlr.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild.ExtensionPack.TaskFactory.PowerShell.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild.ExtensionPack.TaskFactory.PowerShell.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild.ExtensionPack.Tfs2012.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild.ExtensionPack.Tfs2012.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild.ExtensionPack.Tfs2013.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild.ExtensionPack.Tfs2013.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild.ExtensionPack.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/BuildScripts/Lib/MSBuild.ExtensionPack.dll
--------------------------------------------------------------------------------
/BuildScripts/Lib/MSBuild.ExtensionPack.dll.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/DataServices/Blob.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Text;
6 |
7 | namespace GitScc.DataServices
8 | {
9 | public class Blob : ITreeObject
10 | {
11 | public string Id { get; set; }
12 | public string Name { get; set; }
13 | public byte[] Content { get; set; }
14 | }
15 | }
--------------------------------------------------------------------------------
/DataServices/BlobContent.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Data.Services.Common;
6 | using System.IO;
7 | using System.Text;
8 |
9 | namespace GitScc.DataServices
10 | {
11 | [DataServiceKey("Id")]
12 | public class BlobContent
13 | {
14 | public string Id { get; set; }
15 | public string RepoFolder { get; set; }
16 |
17 | private byte[] bytes;
18 | public byte[] Bytes
19 | {
20 | get
21 | {
22 | if (bytes == null)
23 | {
24 | // var fileName = Path.GetTempFileName();
25 |
26 | // Git.RunCmd("cat-file -p " + this.Id + " > " + fileName,
27 | // this.RepoFolder);
28 |
29 | // bytes = File.ReadAllBytes(fileName);
30 |
31 | // if (File.Exists(fileName)) File.Delete(fileName);
32 | }
33 | return bytes;
34 | }
35 | }
36 |
37 | }
38 | }
--------------------------------------------------------------------------------
/DataServices/Change.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace GitScc.DataServices
7 | {
8 | public class Change
9 | {
10 | public ChangeType ChangeType { get; set; }
11 | public string Name { get; set; }
12 | }
13 |
14 | public enum ChangeType
15 | {
16 | Added,
17 | Deleted,
18 | Modified,
19 | TypeChanged,
20 | Renamed,
21 | Copied
22 | }
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/DataServices/Commit.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 |
6 | namespace GitScc.DataServices
7 | {
8 | public class Commit
9 | {
10 | public string Id { get; set; }
11 | public IList ParentIds { get; set; }
12 | public IList ChildIds { get; set; }
13 | public string Message { get; set; }
14 | public string CommitterName { get; set; }
15 | public string CommitterEmail { get; set; }
16 | public DateTime CommitDate { get; set; }
17 | public string CommitDateRelative { get; set; }
18 | internal bool deleted { get; set; }
19 | }
20 | }
--------------------------------------------------------------------------------
/DataServices/GraphLink.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 |
6 | namespace GitScc.DataServices
7 | {
8 | public class GraphLink
9 | {
10 | public string Id { get; set; }
11 | public int X1 { get; set; }
12 | public int Y1 { get; set; }
13 | public int X2 { get; set; }
14 | public int Y2 { get; set; }
15 |
16 | }
17 | }
--------------------------------------------------------------------------------
/DataServices/GraphNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 |
6 | namespace GitScc.DataServices
7 | {
8 | public class GraphNode : Commit
9 | {
10 | public Ref[] Refs { get; set; }
11 | //public string[] Branches { get; set; }
12 | public int X { get; set; }
13 | public int Y { get; set; }
14 | }
15 | }
--------------------------------------------------------------------------------
/DataServices/Ref.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 |
6 | namespace GitScc.DataServices
7 | {
8 | public class Ref
9 | {
10 | public string Id { get; set; }
11 | public string RefName { get; set; }
12 | public string Name
13 | {
14 | get
15 | {
16 | var name = RefName.Replace("refs/", "");
17 | return name.Substring(name.IndexOf("/") + 1);
18 | }
19 | }
20 | public RefTypes Type
21 | {
22 | get
23 | {
24 | if (RefName == "HEAD") return RefTypes.HEAD;
25 | else if (RefName.StartsWith("refs/heads")) return RefTypes.Branch;
26 | else if (RefName.StartsWith("refs/tags")) return RefTypes.Tag;
27 | else if (RefName.StartsWith("refs/remotes")) return RefTypes.RemoteBranch;
28 | return RefTypes.Unknown;
29 | }
30 | }
31 |
32 | public override string ToString()
33 | {
34 | return Name;
35 | }
36 | }
37 |
38 | public enum RefTypes
39 | {
40 | Unknown,
41 | HEAD,
42 | Branch,
43 | Tag,
44 | RemoteBranch
45 | }
46 |
47 | }
--------------------------------------------------------------------------------
/DataServices/RepositoryInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Data.Services.Common;
4 | using System.IO;
5 | using System.Linq;
6 | using System.Text.RegularExpressions;
7 | using System.Security.Cryptography;
8 | using System.Text;
9 | using System.Configuration;
10 |
11 | namespace GitScc.DataServices
12 | {
13 | [DataServiceKey("Id")]
14 | public class RepositoryInfo
15 | {
16 | public string Id { get; set; }
17 | public string Name { get; set; }
18 | public string RepoFolder { get; set; }
19 |
20 | public static RepositoryInfo Open(string directory)
21 | {
22 | var repo = new RepositoryInfo
23 | {
24 | Name = Path.GetFileNameWithoutExtension(directory),
25 | RepoFolder = directory,
26 | //Id = GetId(directory)
27 | };
28 | return repo;
29 | }
30 |
31 | public IEnumerable Commits
32 | {
33 | get
34 | {
35 | var git = NGit.Api.Git.Open(RepoFolder);
36 | var commits = git.Log().Call();
37 | return from c in commits
38 | select new Commit
39 | {
40 | Id = c.Id.Name,
41 | ParentIds = string.Join(",", c.Parents.Select(p => p.Id.Name).ToArray()),
42 | //CommitDateRelative = ss[2],
43 | CommitterName = c.GetCommitterIdent().GetName(),
44 | CommitterEmail = c.GetCommitterIdent().GetEmailAddress(),
45 | CommitDate = c.GetCommitterIdent().GetWhen(),
46 | Tree = new Tree
47 | {
48 | Id = c.Tree.Id.Name,
49 | RepoFolder = this.RepoFolder,
50 | Name = c.Tree.Name
51 | },
52 | Message = c.GetShortMessage(),
53 | };
54 | }
55 | }
56 |
57 | public IEnumerable[ Refs
58 | {
59 | get
60 | {
61 | var repository = NGit.Api.Git.Open(RepoFolder).GetRepository();
62 | var refs = from r in repository.GetAllRefs()
63 | where !r.Value.IsSymbolic()
64 | select new Ref
65 | {
66 | Id = r.Value.GetTarget().GetObjectId().Name,
67 | RefName = r.Key.Replace("refs/", ""),
68 | };
69 |
70 | repository.Close();
71 | return refs;
72 | }
73 | }
74 | }
75 | }
--------------------------------------------------------------------------------
/DataServices/Tree.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Data.Services.Common;
6 |
7 | namespace GitScc.DataServices
8 | {
9 | [DataServiceKey("Id")]
10 | public class Tree
11 | {
12 | public string Id { get; set; }
13 | public string Name { get; set; }
14 | public string RepoFolder { get; set; }
15 |
16 | public IEnumerable Trees
17 | {
18 | get
19 | {
20 | var repository = NGit.Api.Git.Open(RepoFolder).GetRepository();
21 |
22 | //repository.Close();
23 | //return from c in Git.Run("ls-tree " + this.Id, this.RepoFolder).Split('\n')
24 | // where !string.IsNullOrWhiteSpace(c) &&
25 | // c.Substring(7, 4) == "tree"
26 | // select new Tree
27 | // {
28 | // Id = c.Substring(12, 40),
29 | // RepoFolder = this.RepoFolder,
30 | // Name = this.Name + c.Substring(52) + "\\",
31 | // };
32 |
33 | return null;
34 | }
35 | }
36 |
37 | public IEnumerable Blobs
38 | {
39 | get
40 | {
41 | //return from c in Git.Run("ls-tree " + this.Id, this.RepoFolder).Split('\n')
42 | // where !string.IsNullOrWhiteSpace(c) &&
43 | // c.Substring(7, 4) == "blob"
44 | // select new Blob
45 | // {
46 | // Id = c.Substring(12, 40),
47 | // Name = c.Substring(52),
48 | // Content = new BlobContent
49 | // {
50 | // Id = c.Substring(12, 40),
51 | // RepoFolder = this.RepoFolder,
52 | // }
53 | // };
54 |
55 | return null;
56 | }
57 | }
58 | }
59 | }
--------------------------------------------------------------------------------
/Diff/DiffAdditionEditorFormatDefinition.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using System.ComponentModel.Composition;
4 | using System.Windows.Media;
5 | using Microsoft.VisualStudio.Text.Classification;
6 | using Microsoft.VisualStudio.Utilities;
7 |
8 | [Export(typeof(EditorFormatDefinition))]
9 | [Name(DiffFormatNames.Addition)]
10 | [UserVisible(true)]
11 | internal sealed class DiffAdditionEditorFormatDefinition : EditorFormatDefinition
12 | {
13 | public DiffAdditionEditorFormatDefinition()
14 | {
15 | BackgroundColor = Color.FromRgb(180, 255, 180);
16 | ForegroundCustomizable = false;
17 | DisplayName = "Git Diff Addition";
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Diff/DiffFormatNames.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | public static class DiffFormatNames
4 | {
5 | public const string Addition = "GitDiffAddition";
6 | public const string Modification = "GitDiffModification";
7 | public const string Removed = "GitDiffRemoved";
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/Diff/DiffMarginEnabled.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using System.ComponentModel.Composition;
4 | using Microsoft.VisualStudio.Text.Editor;
5 | using Microsoft.VisualStudio.Utilities;
6 |
7 | [Export(typeof(EditorOptionDefinition))]
8 | [Name(GitTextViewOptions.DiffMarginName)]
9 | public sealed class DiffMarginEnabled : ViewOptionDefinition
10 | {
11 | public override bool Default
12 | {
13 | get
14 | {
15 | return true;
16 | }
17 | }
18 |
19 | public override EditorOptionKey Key
20 | {
21 | get
22 | {
23 | return GitTextViewOptions.DiffMarginId;
24 | }
25 | }
26 |
27 | [Export(typeof(IWpfTextViewCreationListener))]
28 | [ContentType("text")]
29 | [TextViewRole(PredefinedTextViewRoles.Document)]
30 | private class TextViewListener : IWpfTextViewCreationListener
31 | {
32 | public void TextViewCreated(IWpfTextView textView)
33 | {
34 | if (textView == null)
35 | return;
36 |
37 | textView.Options.SetOptionValue(GitTextViewOptions.DiffMarginId, !GitSccOptions.Current.DisableDiffMargin);
38 | }
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Diff/DiffMarginFactory.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using System.ComponentModel.Composition;
4 | using Microsoft.VisualStudio.Text;
5 | using Microsoft.VisualStudio.Text.Classification;
6 | using Microsoft.VisualStudio.Text.Editor;
7 | using Microsoft.VisualStudio.Utilities;
8 |
9 | [Export(typeof(IWpfTextViewMarginProvider))]
10 | [Name(DiffMargin.MarginName)]
11 | [Order(After = PredefinedMarginNames.Spacer, Before = PredefinedMarginNames.Outlining)]
12 | [MarginContainer(PredefinedMarginNames.LeftSelection)]
13 | [ContentType("text")]
14 | [TextViewRole(PredefinedTextViewRoles.Editable)]
15 | internal sealed class DiffMarginFactory : IWpfTextViewMarginProvider
16 | {
17 | [Import]
18 | internal ITextDocumentFactoryService TextDocumentFactoryService
19 | {
20 | get;
21 | private set;
22 | }
23 |
24 | [Import]
25 | internal IClassificationFormatMapService ClassificationFormatMapService
26 | {
27 | get;
28 | private set;
29 | }
30 |
31 | [Import]
32 | internal IEditorFormatMapService EditorFormatMapService
33 | {
34 | get;
35 | private set;
36 | }
37 |
38 | public IWpfTextViewMargin CreateMargin(IWpfTextViewHost textViewHost, IWpfTextViewMargin containerMargin)
39 | {
40 | return new DiffMargin(textViewHost.TextView, this);
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Diff/DiffModificationEditorFormatDefinition.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using System.ComponentModel.Composition;
4 | using System.Windows.Media;
5 | using Microsoft.VisualStudio.Text.Classification;
6 | using Microsoft.VisualStudio.Utilities;
7 |
8 | [Export(typeof(EditorFormatDefinition))]
9 | [Name(DiffFormatNames.Modification)]
10 | [UserVisible(true)]
11 | internal sealed class DiffModificationEditorFormatDefinition : EditorFormatDefinition
12 | {
13 | public DiffModificationEditorFormatDefinition()
14 | {
15 | BackgroundColor = Color.FromRgb(160, 200, 255);
16 | ForegroundCustomizable = false;
17 | DisplayName = "Git Diff Modification";
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Diff/DiffParseResultEventArgs.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using System;
4 | using System.Collections.Generic;
5 | using Microsoft.VisualStudio.Text;
6 |
7 | public class DiffParseResultEventArgs : ParseResultEventArgs
8 | {
9 | private readonly List _diff;
10 |
11 | public DiffParseResultEventArgs(ITextSnapshot snapshot, TimeSpan elapsedTime, List diff)
12 | : base(snapshot, elapsedTime)
13 | {
14 | _diff = diff;
15 | }
16 |
17 | public List Diff
18 | {
19 | get
20 | {
21 | return _diff;
22 | }
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Diff/DiffRemovedEditorFormatDefinition.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using System.ComponentModel.Composition;
4 | using System.Windows.Media;
5 | using Microsoft.VisualStudio.Text.Classification;
6 | using Microsoft.VisualStudio.Utilities;
7 |
8 | [Export(typeof(EditorFormatDefinition))]
9 | [Name(DiffFormatNames.Removed)]
10 | [UserVisible(true)]
11 | internal sealed class DiffRemovedEditorFormatDefinition : EditorFormatDefinition
12 | {
13 | public DiffRemovedEditorFormatDefinition()
14 | {
15 | BackgroundColor = Color.FromRgb(255, 160, 180);
16 | ForegroundCustomizable = false;
17 | DisplayName = "Git Diff Removed";
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/Diff/GitTextViewOptions.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using Microsoft.VisualStudio.Text.Editor;
4 |
5 | public static class GitTextViewOptions
6 | {
7 | public const string DiffMarginName = "GitScc/DiffMarginName";
8 |
9 | public static readonly EditorOptionKey DiffMarginId = new EditorOptionKey(DiffMarginName);
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Diff/HunkRange.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | public struct HunkRange
4 | {
5 | private readonly int _startingLineNumber;
6 | private readonly int _numberOfLines;
7 |
8 | public HunkRange(int startingLineNumber, int numberOfLines)
9 | {
10 | _startingLineNumber = startingLineNumber;
11 | _numberOfLines = numberOfLines;
12 | }
13 |
14 | public int StartingLineNumber
15 | {
16 | get
17 | {
18 | return _startingLineNumber;
19 | }
20 | }
21 |
22 | public int NumberOfLines
23 | {
24 | get
25 | {
26 | return _numberOfLines;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/Diff/IGitCommands.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using System.Collections.Generic;
4 | using ITextDocument = Microsoft.VisualStudio.Text.ITextDocument;
5 | using ITextSnapshot = Microsoft.VisualStudio.Text.ITextSnapshot;
6 |
7 | public interface IGitCommands
8 | {
9 | IEnumerable GetGitDiffFor(ITextDocument textDocument, ITextSnapshot snapshot);
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Diff/ParseResultEventArgs.cs:
--------------------------------------------------------------------------------
1 | /* The MIT License
2 | *
3 | * Copyright (c) 2013 Sam Harwell, Tunnel Vision Labs, LLC
4 | *
5 | * Permission is hereby granted, free of charge, to any person obtaining
6 | * a copy of this software and associated documentation files (the
7 | * "Software"), to deal in the Software without restriction, including
8 | * without limitation the rights to use, copy, modify, merge, publish,
9 | * distribute, sublicense, and/or sell copies of the Software, and to
10 | * permit persons to whom the Software is furnished to do so, subject to
11 | * the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be
14 | * included in all copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20 | * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21 | * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 | */
24 |
25 | namespace GitScc.Diff
26 | {
27 | using System;
28 | using Microsoft.VisualStudio.Text;
29 |
30 | public class ParseResultEventArgs : EventArgs
31 | {
32 | public ParseResultEventArgs(ITextSnapshot snapshot)
33 | {
34 | this.Snapshot = snapshot;
35 | }
36 |
37 | public ParseResultEventArgs(ITextSnapshot snapshot, TimeSpan elapsedTime)
38 | {
39 | this.Snapshot = snapshot;
40 | this.ElapsedTime = elapsedTime;
41 | }
42 |
43 | public ITextSnapshot Snapshot
44 | {
45 | get;
46 | private set;
47 | }
48 |
49 | public TimeSpan? ElapsedTime
50 | {
51 | get;
52 | private set;
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/Diff/Resources/CopyOldText.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Diff/Resources/CopyOldText.png
--------------------------------------------------------------------------------
/Diff/Resources/NextArrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Diff/Resources/NextArrow.png
--------------------------------------------------------------------------------
/Diff/Resources/PreviousArrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Diff/Resources/PreviousArrow.png
--------------------------------------------------------------------------------
/Diff/Resources/Rollback.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Diff/Resources/Rollback.png
--------------------------------------------------------------------------------
/Diff/View/DiffMarginControl.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff.View
2 | {
3 | using System.Windows.Controls;
4 |
5 | public partial class DiffMarginControl : UserControl
6 | {
7 | public DiffMarginControl()
8 | {
9 | InitializeComponent();
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/Diff/WeakReference.cs:
--------------------------------------------------------------------------------
1 | /* The MIT License
2 | *
3 | * Copyright (c) 2013 Sam Harwell, Tunnel Vision Labs, LLC
4 | *
5 | * Permission is hereby granted, free of charge, to any person obtaining
6 | * a copy of this software and associated documentation files (the
7 | * "Software"), to deal in the Software without restriction, including
8 | * without limitation the rights to use, copy, modify, merge, publish,
9 | * distribute, sublicense, and/or sell copies of the Software, and to
10 | * permit persons to whom the Software is furnished to do so, subject to
11 | * the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be
14 | * included in all copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20 | * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21 | * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 | */
24 |
25 | namespace GitScc.Diff
26 | {
27 | using SerializationInfo = System.Runtime.Serialization.SerializationInfo;
28 | using StreamingContext = System.Runtime.Serialization.StreamingContext;
29 | using WeakReference = System.WeakReference;
30 |
31 | public class WeakReference : WeakReference
32 | where T : class
33 | {
34 | public WeakReference(object target)
35 | : base(target)
36 | {
37 | }
38 |
39 | public WeakReference(object target, bool trackResurrection)
40 | : base(target, trackResurrection)
41 | {
42 | }
43 |
44 | protected WeakReference(SerializationInfo info, StreamingContext context)
45 | : base(info, context)
46 | {
47 | }
48 |
49 | public new T Target
50 | {
51 | get
52 | {
53 | return (T)base.Target;
54 | }
55 |
56 | set
57 | {
58 | base.Target = value;
59 | }
60 | }
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/DiffClassifier/DiffClassifierProvider.cs:
--------------------------------------------------------------------------------
1 | //***************************************************************************
2 | //
3 | // Copyright (c) Microsoft Corporation. All rights reserved.
4 | // This code is licensed under the Visual Studio SDK license terms.
5 | // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
6 | // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
7 | // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
8 | // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
9 | //
10 | //***************************************************************************
11 |
12 | // Copyright (c) Microsoft Corporation
13 | // All rights reserved
14 |
15 | namespace DiffClassifier
16 | {
17 | using System.ComponentModel.Composition;
18 | using Microsoft.VisualStudio.Text;
19 | using Microsoft.VisualStudio.Text.Classification;
20 | using Microsoft.VisualStudio.Utilities;
21 |
22 | [Export(typeof(IClassifierProvider))]
23 | [ContentType("diff")]
24 | internal class DiffClassifierProvider : IClassifierProvider
25 | {
26 | [Import]
27 | internal IClassificationTypeRegistryService ClassificationRegistry = null;
28 |
29 | static DiffClassifier diffClassifier;
30 |
31 | public IClassifier GetClassifier(ITextBuffer buffer)
32 | {
33 | if (diffClassifier == null)
34 | diffClassifier = new DiffClassifier(ClassificationRegistry);
35 |
36 | return diffClassifier;
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/DiffClassifier/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("DiffClassifier")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("DiffClassifier")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("2a14b445-6437-494b-8417-bcfc08617377")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/DiffClassifier/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/GitApi/CachingFileSystemWatcher.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace GitScc
8 | {
9 | class CachingFileSystemWatcher
10 | {
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/GitApi/DataServices/Change.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace GitScc.DataServices
7 | {
8 | public class Change
9 | {
10 | public ChangeType ChangeType { get; set; }
11 | public string Name { get; set; }
12 | }
13 |
14 | public enum ChangeType
15 | {
16 | Added,
17 | Deleted,
18 | Modified,
19 | TypeChanged,
20 | Renamed,
21 | Copied,
22 | Unmerged,
23 | Unknown
24 | }
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/GitApi/DataServices/Commit.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 |
6 | namespace GitScc.DataServices
7 | {
8 | public class Commit
9 | {
10 | public string Id { get; set; }
11 | public IList ParentIds { get; set; }
12 | public IList ChildIds { get; set; }
13 | public string Subject { get; set; }
14 | public string Message { get; set; }
15 | public string TreeId { get; set; }
16 | public string AuthorName { get; set; }
17 | public string AuthorEmail { get; set; }
18 | public DateTime AuthorDate { get; set; }
19 | public string AuthorDateRelative { get; set; }
20 | internal bool deleted { get; set; }
21 |
22 | public override string ToString()
23 | {
24 | return string.Format("[{0}] {1}", ShortId, Subject.Replace("\r", ""));
25 | }
26 |
27 | public string ShortId { get { return Id.Substring(0, 7); } }
}
28 | }
--------------------------------------------------------------------------------
/GitApi/DataServices/GraphLink.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 |
6 | namespace GitScc.DataServices
7 | {
8 | public class GraphLink
9 | {
10 | public string Id { get; set; }
11 | public int X1 { get; set; }
12 | public int Y1 { get; set; }
13 | public int X2 { get; set; }
14 | public int Y2 { get; set; }
15 |
16 | }
17 | }
--------------------------------------------------------------------------------
/GitApi/DataServices/GraphNode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 |
6 | namespace GitScc.DataServices
7 | {
8 | public class GraphNode : Commit
9 | {
10 | public Ref[] Refs { get; set; }
11 | //public string[] Branches { get; set; }
12 | public int X { get; set; }
13 | public int Y { get; set; }
14 | }
15 | }
--------------------------------------------------------------------------------
/GitApi/DataServices/Ref.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 |
6 | namespace GitScc.DataServices
7 | {
8 | public class Ref
9 | {
10 | private readonly string _name;
11 | private readonly string _refName;
12 | private readonly string _id;
13 | private readonly RefTypes _refType;
14 |
15 | public Ref(string name, string refName, string id, RefTypes refType)
16 | {
17 | _name = name;
18 | _refName = refName;
19 | _refType = refType;
20 | _id = id;
21 | }
22 |
23 | public string Id => _id;
24 | public string RefName => _refName;
25 | public string Name => _name;
26 |
27 | public RefTypes Type => _refType;
28 |
29 |
30 | public override string ToString()
31 | {
32 | return Name;
33 | }
34 | }
35 |
36 | public enum RefTypes
37 | {
38 | Unknown,
39 | HEAD,
40 | Branch,
41 | Tag,
42 | RemoteBranch
43 | }
44 |
45 | }
--------------------------------------------------------------------------------
/GitApi/DiffFileInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace GitScc
7 | {
8 | public class DiffFileInfo
9 | {
10 | public string UnmodifiedFilePath { get; set; }
11 | public string ModifiedFilePath { get; set; }
12 | public string ActualFilename { get; set; }
13 | public string LastRevision { get; set; }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/GitApi/GitActionResult.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace GitScc
7 | {
8 | public class GitActionResult
9 | {
10 | public T Item { get; set; }
11 | public bool Succeeded { get; set; }
12 | public string ErrorMessage { get; set; }
13 |
14 | public GitActionResult()
15 | {
16 | Succeeded = false;
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/GitApi/GitBashResult.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace GitScc
7 | {
8 | public class GitBashResult
9 | {
10 | public bool HasError { get; set; }
11 |
12 | public string Error { get; set; }
13 |
14 | public string Output { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/GitApi/GitBranchInfo.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace GitScc
7 | {
8 | public class GitBranchInfo
9 | {
10 | private const string REMOTE_FULL_NAME = "remotes/{0}/{1}";
11 |
12 | public string Name { get; set; }
13 | public string FullName {
14 | get
15 | {
16 | return IsRemote ? string.Format(REMOTE_FULL_NAME, RemoteName, Name) : Name;
17 | }
18 | }
19 | public bool IsRemote { get; set; }
20 | public string RemoteName { get; set; }
21 | ///
22 | /// Gets the full name of this reference.
23 | ///
24 | ///
25 | public string CanonicalName { get; set; }
26 | public bool IsCurrentRepoHead { get; set; }
27 |
28 | ///
29 | /// Gets the 40 character sha1 of this object.
30 | ///
31 | ///
32 | public string Sha { get; set; }
33 |
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/GitApi/GitCommands.cs:
--------------------------------------------------------------------------------
1 | using System.IO;
2 | using LibGit2Sharp;
3 |
4 | namespace GitScc
5 | {
6 | public static class GitCommands
7 | {
8 | //TODO mode ot RepoManager
9 | public static DiffFileInfo GenerateDiffFileInfo(GitRepository repository, string filename)
10 | {
11 | var info = new DiffFileInfo();
12 |
13 | info.ActualFilename = Path.GetFileName(filename);
14 | info.ModifiedFilePath = filename;
15 | info.LastRevision = repository.GetRevision(filename);
16 |
17 | var filetype = Path.GetExtension(filename);
18 |
19 | //write unmodified file to disk
20 | var unmodifiedFile = repository.GetUnmodifiedFileByAbsolutePath(filename);
21 | var tempFileName = Path.GetTempFileName() + filetype;
22 | File.WriteAllText(tempFileName, unmodifiedFile);
23 | info.UnmodifiedFilePath = tempFileName;
24 |
25 | return info;
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/GitApi/GitFileUpdateEventArgs.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace GitScc
8 | {
9 |
10 |
11 | public class GitFilesUpdateEventArgs : EventArgs
12 | {
13 | public List Files { get; set; }
14 |
15 | public GitFilesUpdateEventArgs(List files)
16 | {
17 | Files = files;
18 | }
19 | }
20 |
21 | public class GitFilesStatusUpdateEventArgs : EventArgs
22 | {
23 | public List Files { get; set; }
24 |
25 | public GitFilesStatusUpdateEventArgs(List files)
26 | {
27 | Files = files;
28 | }
29 | }
30 |
31 | public class GitRepositoryEvent : EventArgs
32 | {
33 | public GitRepository Repository { get; private set; }
34 |
35 | public GitRepositoryEvent(GitRepository repository)
36 | {
37 | Repository = repository;
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/GitApi/GitHeadState.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using LibGit2Sharp;
7 |
8 | namespace GitScc
9 | {
10 | public class GitHeadState
11 | {
12 | public string BranchName { get; set; }
13 | public CurrentOperation Operation { get; set; }
14 | public string Sha { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/GitApi/Log.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Text;
6 |
7 | namespace Gitscc
8 | {
9 | public abstract class Log
10 | {
11 | private static string logFileName = Path.Combine(
12 | Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
13 | "gitscc.log");
14 |
15 | public static void WriteLine(string format, params object[] objects)
16 | {
17 | //#if(DEBUG)
18 | var msg = string.Format(format, objects);
19 | msg = string.Format("{0} {1}\r\n\r\n", DateTime.UtcNow.ToString(), msg);
20 | File.AppendAllText(logFileName, msg);
21 | //#endif
22 | }
23 | }
24 | }
25 |
26 |
--------------------------------------------------------------------------------
/GitApi/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("GitApi")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Microsoft")]
12 | [assembly: AssemblyProduct("GitApi")]
13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("5d4ce710-e1fa-4b51-aa4e-f53ea8321466")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/GitApi/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/GitSccProvider/ClassDiagram.cd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | EAAAC4AYgCBAGAAAEAIABCEAYgQAAIAqAAAQuIASAAA=
7 | SccProviderService.cs
8 |
9 |
10 |
11 |
12 |
13 |
14 | AAEAAAAACCAAAQABAAAAAAAAAAAAAAAAAAAAAAAAAEA=
15 | BasicSccProvider.cs
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/GitSccProvider/CommandId.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace GitScc
4 | {
5 | ///
6 | /// This class is used to expose the list of the IDs of the commands implemented
7 | /// by the client package. This list of IDs must match the set of IDs defined inside the
8 | /// VSCT file.
9 | ///
10 | static class CommandId
11 | {
12 | // Define the list a set of public static members.
13 | public const int icmdSccCommandRefresh = 0x101;
14 | public const int icmdSccCommandGitBash = 0x102;
15 | public const int icmdSccCommandGitExtension = 0x103;
16 | public const int icmdSccCommandCompare = 0x104;
17 | public const int icmdSccCommandUndo = 0x105;
18 | public const int icmdSccCommandInit = 0x106;
19 | public const int icmdSccCommandPendingChanges = 0x107;
20 | public const int icmdSccCommandHistory = 0x108;
21 | public const int icmdSccCommandGitTortoise = 0x109;
22 | public const int icmdSccCommandEditIgnore = 0x110;
23 | public const int cmdidGitIgnoreSubMenuCommandUpdate = 0x2016;
24 |
25 | public const int icmdPendingChangesCommit = 0x111;
26 | public const int icmdPendingChangesAmend = 0x112;
27 | public const int icmdPendingChangesCommitToBranch = 0x113;
28 |
29 | public const int icmdPendingChangesRefresh = 0x114;
30 | public const int icmdHistoryViewRefresh = 0x115;
31 | public const int icmdPendingChangesSettings = 0x116;
32 |
33 | // Define the list of menus (these include toolbars)
34 | public const int imnuHistoryToolWindowToolbarMenu = 0x200;
35 | public const int imnuPendingChangesToolWindowToolbarMenu = 0x202;
36 |
37 | public const int imnuGitSourceControlMenu = 0x205;
38 | public const int imnuPendingChangesToolWindowGitExt = 0x951;
39 | public const int imnuPendingChangesToolWindowGitTor = 0x961;
40 |
41 | // Define the list of icons (use decimal numbers here, to match the resource IDs)
42 | public const int iiconProductIcon = 400;
43 |
44 | // Define the list of bitmaps (use decimal numbers here, to match the resource IDs)
45 | public const int ibmpToolbarMenusImages = 500;
46 | public const int ibmpToolWindowsImages = 501;
47 |
48 | // Glyph indexes in the bitmap used for toolwindows (ibmpToolWindowsImages)
49 | public const int iconSccProviderToolWindow = 0;
50 |
51 | public const int icmdGitExtCommand1 = 0x811;
52 | public const int icmdGitTorCommand1 = 0x911;
53 | public const int icmdGitIgnoreCommand1 = 0x2001;
54 |
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/GitSccProvider/Diff/DiffAdditionEditorFormatDefinition.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using System.ComponentModel.Composition;
4 | using System.Windows.Media;
5 | using Microsoft.VisualStudio.Text.Classification;
6 | using Microsoft.VisualStudio.Utilities;
7 |
8 | [Export(typeof(EditorFormatDefinition))]
9 | [Name(DiffFormatNames.Addition)]
10 | [UserVisible(true)]
11 | internal sealed class DiffAdditionEditorFormatDefinition : EditorFormatDefinition
12 | {
13 | public DiffAdditionEditorFormatDefinition()
14 | {
15 | BackgroundColor = Color.FromRgb(180, 255, 180);
16 | ForegroundCustomizable = false;
17 | DisplayName = "Git Diff Addition";
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/GitSccProvider/Diff/DiffFormatNames.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | public static class DiffFormatNames
4 | {
5 | public const string Addition = "GitDiffAddition";
6 | public const string Modification = "GitDiffModification";
7 | public const string Removed = "GitDiffRemoved";
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/GitSccProvider/Diff/DiffMarginEnabled.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using System.ComponentModel.Composition;
4 | using Microsoft.VisualStudio.Text.Editor;
5 | using Microsoft.VisualStudio.Utilities;
6 |
7 | [Export(typeof(EditorOptionDefinition))]
8 | [Name(GitTextViewOptions.DiffMarginName)]
9 | public sealed class DiffMarginEnabled : ViewOptionDefinition
10 | {
11 | public override bool Default
12 | {
13 | get
14 | {
15 | return true;
16 | }
17 | }
18 |
19 | public override EditorOptionKey Key
20 | {
21 | get
22 | {
23 | return GitTextViewOptions.DiffMarginId;
24 | }
25 | }
26 |
27 | [Export(typeof(IWpfTextViewCreationListener))]
28 | [ContentType("text")]
29 | [TextViewRole(PredefinedTextViewRoles.Document)]
30 | private class TextViewListener : IWpfTextViewCreationListener
31 | {
32 | public void TextViewCreated(IWpfTextView textView)
33 | {
34 | if (textView == null)
35 | return;
36 |
37 | textView.Options.SetOptionValue(GitTextViewOptions.DiffMarginId, !GitSccOptions.Current.DisableDiffMargin);
38 | }
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/GitSccProvider/Diff/DiffMarginFactory.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using System.ComponentModel.Composition;
4 | using Microsoft.VisualStudio.Text;
5 | using Microsoft.VisualStudio.Text.Classification;
6 | using Microsoft.VisualStudio.Text.Editor;
7 | using Microsoft.VisualStudio.Utilities;
8 |
9 | [Export(typeof(IWpfTextViewMarginProvider))]
10 | [Name(DiffMargin.MarginName)]
11 | [Order(After = PredefinedMarginNames.Spacer, Before = PredefinedMarginNames.Outlining)]
12 | [MarginContainer(PredefinedMarginNames.LeftSelection)]
13 | [ContentType("text")]
14 | [TextViewRole(PredefinedTextViewRoles.Editable)]
15 | internal sealed class DiffMarginFactory : IWpfTextViewMarginProvider
16 | {
17 | [Import]
18 | internal ITextDocumentFactoryService TextDocumentFactoryService
19 | {
20 | get;
21 | private set;
22 | }
23 |
24 | [Import]
25 | internal IClassificationFormatMapService ClassificationFormatMapService
26 | {
27 | get;
28 | private set;
29 | }
30 |
31 | [Import]
32 | internal IEditorFormatMapService EditorFormatMapService
33 | {
34 | get;
35 | private set;
36 | }
37 |
38 | public IWpfTextViewMargin CreateMargin(IWpfTextViewHost textViewHost, IWpfTextViewMargin containerMargin)
39 | {
40 | return new DiffMargin(textViewHost.TextView, this);
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/GitSccProvider/Diff/DiffModificationEditorFormatDefinition.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using System.ComponentModel.Composition;
4 | using System.Windows.Media;
5 | using Microsoft.VisualStudio.Text.Classification;
6 | using Microsoft.VisualStudio.Utilities;
7 |
8 | [Export(typeof(EditorFormatDefinition))]
9 | [Name(DiffFormatNames.Modification)]
10 | [UserVisible(true)]
11 | internal sealed class DiffModificationEditorFormatDefinition : EditorFormatDefinition
12 | {
13 | public DiffModificationEditorFormatDefinition()
14 | {
15 | BackgroundColor = Color.FromRgb(160, 200, 255);
16 | ForegroundCustomizable = false;
17 | DisplayName = "Git Diff Modification";
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/GitSccProvider/Diff/DiffParseResultEventArgs.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using System;
4 | using System.Collections.Generic;
5 | using Microsoft.VisualStudio.Text;
6 |
7 | public class DiffParseResultEventArgs : ParseResultEventArgs
8 | {
9 | private readonly List _diff;
10 |
11 | public DiffParseResultEventArgs(ITextSnapshot snapshot, TimeSpan elapsedTime, List diff)
12 | : base(snapshot, elapsedTime)
13 | {
14 | _diff = diff;
15 | }
16 |
17 | public List Diff
18 | {
19 | get
20 | {
21 | return _diff;
22 | }
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/GitSccProvider/Diff/DiffRemovedEditorFormatDefinition.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using System.ComponentModel.Composition;
4 | using System.Windows.Media;
5 | using Microsoft.VisualStudio.Text.Classification;
6 | using Microsoft.VisualStudio.Utilities;
7 |
8 | [Export(typeof(EditorFormatDefinition))]
9 | [Name(DiffFormatNames.Removed)]
10 | [UserVisible(true)]
11 | internal sealed class DiffRemovedEditorFormatDefinition : EditorFormatDefinition
12 | {
13 | public DiffRemovedEditorFormatDefinition()
14 | {
15 | BackgroundColor = Color.FromRgb(255, 160, 180);
16 | ForegroundCustomizable = false;
17 | DisplayName = "Git Diff Removed";
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/GitSccProvider/Diff/GitTextViewOptions.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using Microsoft.VisualStudio.Text.Editor;
4 |
5 | public static class GitTextViewOptions
6 | {
7 | public const string DiffMarginName = "GitScc/DiffMarginName";
8 |
9 | public static readonly EditorOptionKey DiffMarginId = new EditorOptionKey(DiffMarginName);
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/GitSccProvider/Diff/HunkRange.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | public struct HunkRange
4 | {
5 | private readonly int _startingLineNumber;
6 | private readonly int _numberOfLines;
7 |
8 | public HunkRange(int startingLineNumber, int numberOfLines)
9 | {
10 | _startingLineNumber = startingLineNumber;
11 | _numberOfLines = numberOfLines;
12 | }
13 |
14 | public int StartingLineNumber
15 | {
16 | get
17 | {
18 | return _startingLineNumber;
19 | }
20 | }
21 |
22 | public int NumberOfLines
23 | {
24 | get
25 | {
26 | return _numberOfLines;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/GitSccProvider/Diff/IGitCommands.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff
2 | {
3 | using System.Collections.Generic;
4 | using ITextDocument = Microsoft.VisualStudio.Text.ITextDocument;
5 | using ITextSnapshot = Microsoft.VisualStudio.Text.ITextSnapshot;
6 |
7 | public interface IGitCommands
8 | {
9 | IEnumerable GetGitDiffFor(ITextDocument textDocument, ITextSnapshot snapshot);
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/GitSccProvider/Diff/ParseResultEventArgs.cs:
--------------------------------------------------------------------------------
1 | /* The MIT License
2 | *
3 | * Copyright (c) 2013 Sam Harwell, Tunnel Vision Labs, LLC
4 | *
5 | * Permission is hereby granted, free of charge, to any person obtaining
6 | * a copy of this software and associated documentation files (the
7 | * "Software"), to deal in the Software without restriction, including
8 | * without limitation the rights to use, copy, modify, merge, publish,
9 | * distribute, sublicense, and/or sell copies of the Software, and to
10 | * permit persons to whom the Software is furnished to do so, subject to
11 | * the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be
14 | * included in all copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20 | * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21 | * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 | */
24 |
25 | namespace GitScc.Diff
26 | {
27 | using System;
28 | using Microsoft.VisualStudio.Text;
29 |
30 | public class ParseResultEventArgs : EventArgs
31 | {
32 | public ParseResultEventArgs(ITextSnapshot snapshot)
33 | {
34 | this.Snapshot = snapshot;
35 | }
36 |
37 | public ParseResultEventArgs(ITextSnapshot snapshot, TimeSpan elapsedTime)
38 | {
39 | this.Snapshot = snapshot;
40 | this.ElapsedTime = elapsedTime;
41 | }
42 |
43 | public ITextSnapshot Snapshot
44 | {
45 | get;
46 | private set;
47 | }
48 |
49 | public TimeSpan? ElapsedTime
50 | {
51 | get;
52 | private set;
53 | }
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/GitSccProvider/Diff/Resources/CopyOldText.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Diff/Resources/CopyOldText.png
--------------------------------------------------------------------------------
/GitSccProvider/Diff/Resources/NextArrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Diff/Resources/NextArrow.png
--------------------------------------------------------------------------------
/GitSccProvider/Diff/Resources/PreviousArrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Diff/Resources/PreviousArrow.png
--------------------------------------------------------------------------------
/GitSccProvider/Diff/Resources/Rollback.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Diff/Resources/Rollback.png
--------------------------------------------------------------------------------
/GitSccProvider/Diff/View/DiffMarginControl.xaml.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Diff.View
2 | {
3 | using System.Windows.Controls;
4 |
5 | public partial class DiffMarginControl : UserControl
6 | {
7 | public DiffMarginControl()
8 | {
9 | InitializeComponent();
10 | }
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/GitSccProvider/Diff/WeakReference.cs:
--------------------------------------------------------------------------------
1 | /* The MIT License
2 | *
3 | * Copyright (c) 2013 Sam Harwell, Tunnel Vision Labs, LLC
4 | *
5 | * Permission is hereby granted, free of charge, to any person obtaining
6 | * a copy of this software and associated documentation files (the
7 | * "Software"), to deal in the Software without restriction, including
8 | * without limitation the rights to use, copy, modify, merge, publish,
9 | * distribute, sublicense, and/or sell copies of the Software, and to
10 | * permit persons to whom the Software is furnished to do so, subject to
11 | * the following conditions:
12 | *
13 | * The above copyright notice and this permission notice shall be
14 | * included in all copies or substantial portions of the Software.
15 | *
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20 | * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21 | * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 | */
24 |
25 | namespace GitScc.Diff
26 | {
27 | using SerializationInfo = System.Runtime.Serialization.SerializationInfo;
28 | using StreamingContext = System.Runtime.Serialization.StreamingContext;
29 | using WeakReference = System.WeakReference;
30 |
31 | public class WeakReference : WeakReference
32 | where T : class
33 | {
34 | public WeakReference(object target)
35 | : base(target)
36 | {
37 | }
38 |
39 | public WeakReference(object target, bool trackResurrection)
40 | : base(target, trackResurrection)
41 | {
42 | }
43 |
44 | protected WeakReference(SerializationInfo info, StreamingContext context)
45 | : base(info, context)
46 | {
47 | }
48 |
49 | public new T Target
50 | {
51 | get
52 | {
53 | return (T)base.Target;
54 | }
55 |
56 | set
57 | {
58 | base.Target = value;
59 | }
60 | }
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/GitSccProvider/DiffTools.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Threading.Tasks;
7 |
8 | namespace GitSccProvider
9 | {
10 | public enum DiffTools :int
11 | {
12 | [Description("Visual Studio")]
13 | VisualStudio,
14 | [Description("Default Git Tool (Set in your .gitconfig)")]
15 | GitDefault
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/GitSccProvider/Guids.cs:
--------------------------------------------------------------------------------
1 | /***************************************************************************
2 |
3 | Copyright (c) Microsoft Corporation. All rights reserved.
4 | This code is licensed under the Visual Studio SDK license terms.
5 | THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
6 | ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
7 | IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
8 | PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
9 |
10 | ***************************************************************************/
11 |
12 | using System;
13 |
14 | namespace GitScc
15 | {
16 | ///
17 | /// This class is used only to expose the list of Guids used by this package.
18 | /// This list of guids must match the set of Guids used inside the VSCT file.
19 | ///
20 | static class GuidList
21 | {
22 | // Now define the list of guids as public static members.
23 |
24 | // Unique ID of the source control provider; this is also used as the command UI context to show/hide the pacakge UI
25 | public static readonly Guid guidSccProvider = new Guid("{C4128D99-0000-41D1-A6C3-704E6C1A3DE2}");
26 | // The guid of the source control provider service (implementing IVsSccProvider interface)
27 | public static readonly Guid guidSccProviderService = new Guid("{C4128D99-1000-41D1-A6C3-704E6C1A3DE2}");
28 | // The guid of the source control provider package (implementing IVsPackage interface)
29 | public static readonly Guid guidSccProviderPkg = new Guid("{C4128D99-2000-41D1-A6C3-704E6C1A3DE2}");
30 |
31 | //Other guids for menus and commands
32 | public static readonly Guid guidSccProviderCmdSet = new Guid("{C4A089DA-E640-438d-A977-815C267CA76D}");
33 |
34 | };
35 | }
36 |
--------------------------------------------------------------------------------
/GitSccProvider/Key.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Key.snk
--------------------------------------------------------------------------------
/GitSccProvider/PlatformUI/TreeViewColors.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.PlatformUI
2 | {
3 | using System.Diagnostics;
4 | using Microsoft.VisualStudio.Shell;
5 |
6 | public static class TreeViewColors
7 | {
8 | [DebuggerBrowsable(DebuggerBrowsableState.Never)]
9 | public static object SelectedItemActiveBrushKey
10 | {
11 | get
12 | {
13 | return GetResourceKey("SelectedItemActiveBrushKey", VsBrushes.ActiveCaptionKey);
14 | }
15 | }
16 |
17 | [DebuggerBrowsable(DebuggerBrowsableState.Never)]
18 | public static object SelectedItemActiveTextBrushKey
19 | {
20 | get
21 | {
22 | return GetResourceKey("SelectedItemActiveTextBrushKey", VsBrushes.CaptionTextKey);
23 | }
24 | }
25 |
26 | [DebuggerBrowsable(DebuggerBrowsableState.Never)]
27 | public static object SelectedItemInactiveBrushKey
28 | {
29 | get
30 | {
31 | return GetResourceKey("SelectedItemInactiveBrushKey", VsBrushes.InactiveCaptionKey);
32 | }
33 | }
34 |
35 | [DebuggerBrowsable(DebuggerBrowsableState.Never)]
36 | public static object SelectedItemInactiveTextBrushKey
37 | {
38 | get
39 | {
40 | return GetResourceKey("SelectedItemInactiveTextBrushKey", VsBrushes.InactiveCaptionTextKey);
41 | }
42 | }
43 |
44 | private static object GetResourceKey(string resourceName, object defaultKey)
45 | {
46 | return PlatformColorHelper.GetResourceKey(typeof(TreeViewColors), resourceName) ?? defaultKey;
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/GitSccProvider/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("GitSccProvider")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("GitSccProvider")]
13 | [assembly: AssemblyCopyright("")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // Version information for an assembly consists of the following four values:
23 | //
24 | // Major Version
25 | // Minor Version
26 | // Build Number
27 | // Revision
28 | //
29 | // You can specify all the values or you can default the Build and Revision Numbers
30 | // by using the '*' as shown below:
31 | // [assembly: AssemblyVersion("1.0.*")]
32 | [assembly: AssemblyVersion("1.5.0.0")]
33 | [assembly: AssemblyFileVersion("1.0.0.0")]
34 |
--------------------------------------------------------------------------------
/GitSccProvider/Resources/Compare.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/Compare.png
--------------------------------------------------------------------------------
/GitSccProvider/Resources/History.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/History.png
--------------------------------------------------------------------------------
/GitSccProvider/Resources/Images_24bit.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/Images_24bit.bmp
--------------------------------------------------------------------------------
/GitSccProvider/Resources/Images_32bit.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/Images_32bit.bmp
--------------------------------------------------------------------------------
/GitSccProvider/Resources/Images_32bit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/Images_32bit.png
--------------------------------------------------------------------------------
/GitSccProvider/Resources/Loading.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/Loading.png
--------------------------------------------------------------------------------
/GitSccProvider/Resources/Patch-Mode-Blue.xshd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | Index:\s
12 |
13 |
14 | ==
15 |
16 |
17 | ---
18 |
19 |
20 | \+\+\+
21 |
22 |
23 | @@
24 |
25 |
26 | -
27 |
28 |
29 | \+
30 |
31 |
32 | \s
33 |
34 |
35 |
--------------------------------------------------------------------------------
/GitSccProvider/Resources/Patch-Mode-Dark.xshd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | Index:\s
15 |
16 |
17 | ==
18 |
19 |
20 | ---
21 |
22 |
23 | \+\+\+
24 |
25 |
26 | @@
27 |
28 |
29 | -
30 |
31 |
32 | \+
33 |
34 |
35 | \s
36 |
37 |
38 |
--------------------------------------------------------------------------------
/GitSccProvider/Resources/PendingCheckins.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/PendingCheckins.png
--------------------------------------------------------------------------------
/GitSccProvider/Resources/Product.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/Product.ico
--------------------------------------------------------------------------------
/GitSccProvider/Resources/Refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/Refresh.png
--------------------------------------------------------------------------------
/GitSccProvider/Resources/SccGlyphs.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/SccGlyphs.bmp
--------------------------------------------------------------------------------
/GitSccProvider/Resources/SccGlyphs2012.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/SccGlyphs2012.png
--------------------------------------------------------------------------------
/GitSccProvider/Resources/Switch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/Switch.png
--------------------------------------------------------------------------------
/GitSccProvider/Resources/ToolWindowWithEditorCommand.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/ToolWindowWithEditorCommand.png
--------------------------------------------------------------------------------
/GitSccProvider/Resources/ToolWindowWithEditorPackage.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/ToolWindowWithEditorPackage.ico
--------------------------------------------------------------------------------
/GitSccProvider/Resources/UndoCheckout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/UndoCheckout.png
--------------------------------------------------------------------------------
/GitSccProvider/Resources/git.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/Resources/git.png
--------------------------------------------------------------------------------
/GitSccProvider/SccProviderService.IVsSccPublish.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading;
3 | using Microsoft.VisualStudio.OLE.Interop;
4 | using Microsoft.VisualStudio.Shell;
5 | using Microsoft.VisualStudio.Shell.Interop;
6 |
7 | using Task = System.Threading.Tasks.Task;
8 | namespace GitScc
9 | {
10 | public partial class SccProviderService : IVsSccPublish
11 | {
12 | public async Task BeginPublishWorkflowAsync(CancellationToken cancellationToken)
13 | {
14 | cancellationToken.ThrowIfCancellationRequested();
15 |
16 | await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
17 |
18 | IOleCommandTarget oleCommandTarget = ServiceProvider.GlobalProvider.GetService(typeof(SUIHostCommandDispatcher)) as IOleCommandTarget;
19 |
20 | // Execute the add to source control command. In an actual Source Control Provider, query the status before executing the command.
21 | oleCommandTarget.Exec(GuidList.guidSccProviderCmdSet, CommandId.icmdSccCommandInit, 0, IntPtr.Zero, IntPtr.Zero);
22 |
23 | cancellationToken.ThrowIfCancellationRequested();
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/GitSccProvider/StatusBar/IStatusBarService.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using Microsoft.VisualStudio.Shell;
7 |
8 | namespace GitScc.StatusBar
9 | {
10 | public interface IStatusBarService : IVsSccCurrentBranch, IVsSccChanges, IVsSccCurrentRepository
11 | {
12 | new string BranchName { get; set; }
13 |
14 | new string RepositoryName { get; set; }
15 |
16 | new string BranchDetail { get; set; }
17 |
18 | new string RepositoryDetail { get; set; }
19 |
20 | new string PendingChangeDetail { get; set; }
21 |
22 |
23 | new int PendingChangeCount { get; set; }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/GitSccProvider/UI/BranchPicker.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/GitSccProvider/UI/GitConsole.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
12 |
13 |
14 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/GitSccProvider/UI/StatusBox.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/GitSccProvider/Utilities/SwitchBranchInfo.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.Utilities
2 | {
3 | public class SwitchBranchInfo
4 | {
5 | public GitBranchInfo BranchInfo { get; set; }
6 |
7 | public string BranchName { get; set; }
8 |
9 | public bool CreateBranch { get; set; }
10 |
11 | public bool Switch { get; set; }
12 |
13 | public GitRepository Repository { get; set; }
14 | }
15 | }
--------------------------------------------------------------------------------
/GitSccProvider/ViewModel/MainViewModel.cs:
--------------------------------------------------------------------------------
1 | using GalaSoft.MvvmLight;
2 |
3 | namespace GitSccProvider.ViewModel
4 | {
5 | ///
6 | /// This class contains properties that the main View can data bind to.
7 | ///
8 | /// Use the mvvminpc snippet to add bindable properties to this ViewModel.
9 | ///
10 | ///
11 | /// You can also use Blend to data bind with the tool's support.
12 | ///
13 | ///
14 | /// See http://www.galasoft.ch/mvvm
15 | ///
16 | ///
17 | public class MainViewModel : ViewModelBase
18 | {
19 | ///
20 | /// Initializes a new instance of the MainViewModel class.
21 | ///
22 | public MainViewModel()
23 | {
24 | ////if (IsInDesignMode)
25 | ////{
26 | //// // Code runs in Blend --> create design time data.
27 | ////}
28 | ////else
29 | ////{
30 | //// // Code runs "for real"
31 | ////}
32 | }
33 | }
34 | }
--------------------------------------------------------------------------------
/GitSccProvider/ViewModel/ViewModelLocator.cs:
--------------------------------------------------------------------------------
1 | /*
2 | In App.xaml:
3 |
4 |
6 |
7 |
8 | In the View:
9 | DataContext="{Binding Source={StaticResource Locator}, Path=ViewModelName}"
10 |
11 | You can also use Blend to do all this with the tool's support.
12 | See http://www.galasoft.ch/mvvm
13 | */
14 |
15 | using GalaSoft.MvvmLight;
16 | using GalaSoft.MvvmLight.Ioc;
17 | using Microsoft.Practices.ServiceLocation;
18 |
19 | namespace GitSccProvider.ViewModel
20 | {
21 | ///
22 | /// This class contains static references to all the view models in the
23 | /// application and provides an entry point for the bindings.
24 | ///
25 | public class ViewModelLocator
26 | {
27 | ///
28 | /// Initializes a new instance of the ViewModelLocator class.
29 | ///
30 | public ViewModelLocator()
31 | {
32 | ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default);
33 |
34 | ////if (ViewModelBase.IsInDesignModeStatic)
35 | ////{
36 | //// // Create design time view services and models
37 | //// SimpleIoc.Default.Register();
38 | ////}
39 | ////else
40 | ////{
41 | //// // Create run time view services and models
42 | //// SimpleIoc.Default.Register();
43 | ////}
44 |
45 | SimpleIoc.Default.Register();
46 | }
47 |
48 | public MainViewModel Main
49 | {
50 | get
51 | {
52 | return ServiceLocator.Current.GetInstance();
53 | }
54 | }
55 |
56 | public static void Cleanup()
57 | {
58 | // TODO Clear the ViewModels
59 | }
60 | }
61 | }
--------------------------------------------------------------------------------
/GitSccProvider/git2-a904fc6.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/git2-a904fc6.dll
--------------------------------------------------------------------------------
/GitSccProvider/solution explorer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/solution explorer.png
--------------------------------------------------------------------------------
/GitSccProvider/source.extension.cs:
--------------------------------------------------------------------------------
1 | // ------------------------------------------------------------------------------
2 | //
3 | // This file was generated by Extensibility Tools v1.10.198
4 | //
5 | // ------------------------------------------------------------------------------
6 | namespace GitScc
7 | {
8 | static class Vsix
9 | {
10 | public const string Id = "GitSccProvider.Microsoft.88d658b3-e361-4e7f-8f4d-9e78f6e4515a";
11 | public const string Name = "Easy Git Integration Tools";
12 | public const string Description = @"EZ-GIT (Easy Git Integration Tools) is a plug-in that integrates git with Visual Studio.";
13 | public const string Language = "en-US";
14 | public const string Version = "1.7.0";
15 | public const string Author = "Jon Zoss";
16 | public const string Tags = "";
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/GitSccProvider/source.extension.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitSccProvider/source.extension.ico
--------------------------------------------------------------------------------
/GitSccProvider/source.extension.vsixmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Easy Git Integration Tools
6 | EZ-GIT (Easy Git Integration Tools) is a plug-in that integrates git with Visual Studio.
7 | https://github.com/jzoss/Git-Source-Control-Provider
8 | License.txt
9 | https://github.com/jzoss/Git-Source-Control-Provider/blob/master/history.md
10 | Resources\git.png
11 | Resources\git.png
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/GitSccProvider/stylesheet.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | padding: 0;
4 | border: 0;
5 | color: #1E1E1E;
6 | font-size: 13px;
7 | font-family: "Segoe UI", Helvetica, Arial, sans-serif;
8 | line-height: 1.45;
9 | word-wrap: break-word;
10 | }
11 |
12 | /* General & 'Reset' Stuff */
13 |
14 |
15 | .container {
16 | width: 980px;
17 | margin: 0 auto;
18 | }
19 |
20 | section {
21 | display: block;
22 | margin: 0;
23 | }
24 |
25 | h1, h2, h3, h4, h5, h6 {
26 | margin: 0;
27 | }
28 |
29 | /* Header,
30 | header - container
31 | h1 - project name
32 | h2 - project description
33 | */
34 |
35 | #header {
36 | color: #FFF;
37 | background: #68217a;
38 | position:relative;
39 | }
40 | #hangcloud {
41 | width: 190px;
42 | height: 160px;
43 | background: url("../images/bannerart03.png");
44 | position: absolute;
45 | top: 0;
46 | right: -30px;
47 | }
48 | h1, h2 {
49 | font-family: "Segoe UI Light", "Segoe UI", Helvetica, Arial, sans-serif;
50 | line-height: 1;
51 | margin: 0 18px;;
52 | padding: 0;
53 | }
54 | #header h1 {
55 | font-size: 3.4em;
56 | padding-top: 18px;
57 | font-weight: normal;
58 | margin-left: 15px;
59 | }
60 |
61 | #header h2 {
62 | font-size: 1.5em;
63 | margin-top: 10px;
64 | padding-bottom: 18px;
65 | font-weight: normal;
66 | }
67 |
68 |
69 | #main_content {
70 | width: 100%;
71 | display: flex;
72 | flex-direction: row;
73 | }
74 |
75 |
76 | h1, h2, h3, h4, h5, h6 {
77 | font-weight: bolder;
78 | }
79 |
80 | #main_content h1 {
81 | font-size: 1.8em;
82 | margin-top: 34px;
83 | }
84 |
85 | #main_content h1:first-child {
86 | margin-top: 30px;
87 | }
88 |
89 | #main_content h2 {
90 | font-size: 1.8em;
91 | }
92 | p, ul {
93 | margin: 11px 18px;
94 | }
95 |
96 | #main_content a {
97 | color: #06C;
98 | text-decoration: none;
99 | }
100 | ul {
101 | margin-top: 13px;
102 | margin-left: 18px;
103 | padding-left: 0;
104 | }
105 | ul li {
106 | margin-left: 18px;
107 | padding-left: 0;
108 | }
109 | #lpanel {
110 | width: 620px;
111 | float: left;
112 | }
113 | #rpanel ul {
114 | list-style-type: none;
115 | }
116 | #rpanel ul li {
117 | line-height: 1.8em;
118 | }
119 | #rpanel {
120 | background: #e7e7e7;
121 | width: 360px;
122 | }
123 |
--------------------------------------------------------------------------------
/GitTools/GitTools.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {3A4524D2-7D17-4176-8701-8EB8AC7598ED}
8 | Library
9 | Properties
10 | GitTools
11 | GitTools
12 | v4.7.2
13 | 512
14 |
15 |
16 |
17 | true
18 | full
19 | false
20 | bin\Debug\
21 | DEBUG;TRACE
22 | prompt
23 | 4
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
55 |
--------------------------------------------------------------------------------
/GitTools/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("GitTools")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("Target Corporation")]
12 | [assembly: AssemblyProduct("GitTools")]
13 | [assembly: AssemblyCopyright("Copyright © Target Corporation 2015")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("3a4524d2-7d17-4176-8701-8eb8ac7598ed")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/GitUI/App.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/GitUI/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Linq;
6 | using System.Windows;
7 | using System.Reflection;
8 | using System.IO;
9 |
10 | namespace GitUI
11 | {
12 | ///
13 | /// Interaction logic for App.xaml
14 | ///
15 | public partial class App : Application
16 | {
17 | public App()
18 | {
19 | AppDomain.CurrentDomain.AssemblyResolve += (sender, args) =>
20 | {
21 | String resourceName = "GitUI.Resources." + new AssemblyName(args.Name).Name + ".dll";
22 |
23 | using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceName))
24 | {
25 | if (stream == null) return null;
26 |
27 | Byte[] assemblyData = new Byte[stream.Length];
28 | stream.Read(assemblyData, 0, assemblyData.Length);
29 | return Assembly.Load(assemblyData);
30 | }
31 | };
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/GitUI/HistoryViewCommands.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows.Input;
6 |
7 | namespace GitUI
8 | {
9 | public static class HistoryViewCommands
10 | {
11 | public static readonly RoutedUICommand CloseCommitDetails = new RoutedUICommand("CloseCommitDetails", "CloseCommitDetails", typeof(MainWindow));
12 | public static readonly RoutedUICommand OpenCommitDetails = new RoutedUICommand("OpenCommitDetails", "OpenCommitDetails", typeof(MainWindow));
13 | public static readonly RoutedUICommand SelectCommit = new RoutedUICommand("SelectCommit", "SelectCommit", typeof(MainWindow));
14 | public static readonly RoutedUICommand CompareCommits = new RoutedUICommand("CompareCommits", "CompareCommits", typeof(MainWindow));
15 | public static readonly RoutedUICommand ExportGraph = new RoutedUICommand("ExportGraph", "ExportGraph", typeof(MainWindow));
16 | public static readonly RoutedUICommand RefreshGraph = new RoutedUICommand("RefreshGraph", "RefreshGraph", typeof(MainWindow));
17 | public static readonly RoutedUICommand ScrollToCommit = new RoutedUICommand("ScrollToCommit", "ScrollToCommit", typeof(MainWindow));
18 | public static readonly RoutedUICommand GraphLoaded = new RoutedUICommand("GraphLoaded", "GraphLoaded", typeof(MainWindow));
19 | public static readonly RoutedUICommand PendingChanges = new RoutedUICommand("PendingChanges", "PendingChanges", typeof(MainWindow));
20 | public static readonly RoutedUICommand ShowMessage = new RoutedUICommand("ShowMessage", "ShowMessage", typeof(MainWindow));
21 | public static readonly RoutedUICommand OpenRepository = new RoutedUICommand("OpenRepository", "OpenRepository", typeof(MainWindow));
22 | }
23 |
24 | }
25 |
--------------------------------------------------------------------------------
/GitUI/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Resources;
3 | using System.Runtime.CompilerServices;
4 | using System.Runtime.InteropServices;
5 | using System.Windows;
6 |
7 | // General Information about an assembly is controlled through the following
8 | // set of attributes. Change these attribute values to modify the information
9 | // associated with an assembly.
10 | [assembly: AssemblyTitle("GitUI")]
11 | [assembly: AssemblyDescription("")]
12 | [assembly: AssemblyConfiguration("")]
13 | [assembly: AssemblyCompany("Microsoft")]
14 | [assembly: AssemblyProduct("GitUI")]
15 | [assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
16 | [assembly: AssemblyTrademark("")]
17 | [assembly: AssemblyCulture("")]
18 |
19 | // Setting ComVisible to false makes the types in this assembly not visible
20 | // to COM components. If you need to access a type in this assembly from
21 | // COM, set the ComVisible attribute to true on that type.
22 | [assembly: ComVisible(false)]
23 |
24 | //In order to begin building localizable applications, set
25 | //CultureYouAreCodingWith in your .csproj file
26 | //inside a . For example, if you are using US english
27 | //in your source files, set the to en-US. Then uncomment
28 | //the NeutralResourceLanguage attribute below. Update the "en-US" in
29 | //the line below to match the UICulture setting in the project file.
30 |
31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32 |
33 |
34 | [assembly: ThemeInfo(
35 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
36 | //(used if a resource is not found in the page,
37 | // or application resource dictionaries)
38 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
39 | //(used if a resource is not found in the page,
40 | // app, or any theme specific resource dictionaries)
41 | )]
42 |
43 |
44 | // Version information for an assembly consists of the following four values:
45 | //
46 | // Major Version
47 | // Minor Version
48 | // Build Number
49 | // Revision
50 | //
51 | // You can specify all the values or you can default the Build and Revision Numbers
52 | // by using the '*' as shown below:
53 | // [assembly: AssemblyVersion("1.0.*")]
54 | [assembly: AssemblyVersion("1.0.0.0")]
55 | [assembly: AssemblyFileVersion("1.0.0.0")]
56 |
--------------------------------------------------------------------------------
/GitUI/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace GitUI.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.6.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/GitUI/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/GitUI/Resources/GitApi2.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/GitApi2.dll
--------------------------------------------------------------------------------
/GitUI/Resources/ICSharpCode.AvalonEdit.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/ICSharpCode.AvalonEdit.dll
--------------------------------------------------------------------------------
/GitUI/Resources/ICSharpCode.SharpZipLib.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/ICSharpCode.SharpZipLib.dll
--------------------------------------------------------------------------------
/GitUI/Resources/LibGit2Sharp.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/LibGit2Sharp.dll
--------------------------------------------------------------------------------
/GitUI/Resources/Loading.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/Loading.png
--------------------------------------------------------------------------------
/GitUI/Resources/Microsoft.Win32.Primitives.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/Microsoft.Win32.Primitives.dll
--------------------------------------------------------------------------------
/GitUI/Resources/Microsoft.Windows.Shell.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/Microsoft.Windows.Shell.dll
--------------------------------------------------------------------------------
/GitUI/Resources/Nito.AsyncEx.Concurrent.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/Nito.AsyncEx.Concurrent.dll
--------------------------------------------------------------------------------
/GitUI/Resources/Nito.AsyncEx.Enlightenment.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/Nito.AsyncEx.Enlightenment.dll
--------------------------------------------------------------------------------
/GitUI/Resources/Nito.AsyncEx.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/Nito.AsyncEx.dll
--------------------------------------------------------------------------------
/GitUI/Resources/Patch-Mode.xshd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | Index:\s
12 |
13 |
14 | ==
15 |
16 |
17 | ---
18 |
19 |
20 | \+\+\+
21 |
22 |
23 | @@
24 |
25 |
26 | -
27 |
28 |
29 | \+
30 |
31 |
32 | \s
33 |
34 |
35 |
--------------------------------------------------------------------------------
/GitUI/Resources/System.AppContext.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.AppContext.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Collections.Concurrent.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Collections.Concurrent.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Collections.NonGeneric.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Collections.NonGeneric.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Collections.Specialized.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Collections.Specialized.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Collections.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Collections.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.ComponentModel.EventBasedAsync.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.ComponentModel.EventBasedAsync.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.ComponentModel.Primitives.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.ComponentModel.Primitives.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.ComponentModel.TypeConverter.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.ComponentModel.TypeConverter.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.ComponentModel.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.ComponentModel.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Console.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Console.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Data.Common.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Data.Common.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Diagnostics.Contracts.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Diagnostics.Contracts.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Diagnostics.Debug.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Diagnostics.Debug.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Diagnostics.FileVersionInfo.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Diagnostics.FileVersionInfo.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Diagnostics.Process.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Diagnostics.Process.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Diagnostics.StackTrace.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Diagnostics.StackTrace.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Diagnostics.TextWriterTraceListener.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Diagnostics.TextWriterTraceListener.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Diagnostics.Tools.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Diagnostics.Tools.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Diagnostics.TraceSource.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Diagnostics.TraceSource.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Diagnostics.Tracing.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Diagnostics.Tracing.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Drawing.Primitives.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Drawing.Primitives.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Dynamic.Runtime.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Dynamic.Runtime.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Globalization.Calendars.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Globalization.Calendars.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Globalization.Extensions.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Globalization.Extensions.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Globalization.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Globalization.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.IO.Compression.ZipFile.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.IO.Compression.ZipFile.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.IO.Compression.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.IO.Compression.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.IO.FileSystem.DriveInfo.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.IO.FileSystem.DriveInfo.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.IO.FileSystem.Primitives.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.IO.FileSystem.Primitives.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.IO.FileSystem.Watcher.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.IO.FileSystem.Watcher.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.IO.FileSystem.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.IO.FileSystem.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.IO.IsolatedStorage.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.IO.IsolatedStorage.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.IO.MemoryMappedFiles.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.IO.MemoryMappedFiles.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.IO.Pipes.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.IO.Pipes.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.IO.UnmanagedMemoryStream.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.IO.UnmanagedMemoryStream.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.IO.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.IO.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Linq.Expressions.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Linq.Expressions.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Linq.Parallel.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Linq.Parallel.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Linq.Queryable.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Linq.Queryable.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Linq.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Linq.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Net.Http.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Net.Http.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Net.NameResolution.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Net.NameResolution.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Net.NetworkInformation.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Net.NetworkInformation.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Net.Ping.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Net.Ping.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Net.Primitives.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Net.Primitives.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Net.Requests.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Net.Requests.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Net.Security.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Net.Security.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Net.Sockets.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Net.Sockets.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Net.WebHeaderCollection.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Net.WebHeaderCollection.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Net.WebSockets.Client.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Net.WebSockets.Client.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Net.WebSockets.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Net.WebSockets.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.ObjectModel.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.ObjectModel.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Reactive.Core.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Reactive.Core.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Reactive.Interfaces.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Reactive.Interfaces.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Reactive.Linq.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Reactive.Linq.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Reactive.PlatformServices.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Reactive.PlatformServices.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Reactive.Windows.Threading.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Reactive.Windows.Threading.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Reflection.Extensions.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Reflection.Extensions.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Reflection.Primitives.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Reflection.Primitives.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Reflection.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Reflection.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Resources.Reader.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Resources.Reader.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Resources.ResourceManager.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Resources.ResourceManager.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Resources.Writer.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Resources.Writer.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Runtime.CompilerServices.VisualC.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Runtime.CompilerServices.VisualC.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Runtime.Extensions.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Runtime.Extensions.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Runtime.Handles.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Runtime.Handles.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Runtime.InteropServices.RuntimeInformation.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Runtime.InteropServices.RuntimeInformation.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Runtime.InteropServices.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Runtime.InteropServices.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Runtime.Numerics.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Runtime.Numerics.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Runtime.Serialization.Formatters.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Runtime.Serialization.Formatters.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Runtime.Serialization.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Runtime.Serialization.Json.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Runtime.Serialization.Primitives.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Runtime.Serialization.Primitives.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Runtime.Serialization.Xml.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Runtime.Serialization.Xml.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Runtime.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Runtime.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Security.Claims.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Security.Claims.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Security.Cryptography.Algorithms.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Security.Cryptography.Algorithms.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Security.Cryptography.Csp.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Security.Cryptography.Csp.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Security.Cryptography.Encoding.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Security.Cryptography.Encoding.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Security.Cryptography.Primitives.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Security.Cryptography.Primitives.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Security.Cryptography.X509Certificates.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Security.Cryptography.X509Certificates.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Security.Principal.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Security.Principal.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Security.SecureString.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Security.SecureString.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Text.Encoding.Extensions.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Text.Encoding.Extensions.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Text.Encoding.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Text.Encoding.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Text.RegularExpressions.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Text.RegularExpressions.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Threading.Overlapped.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Threading.Overlapped.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Threading.Tasks.Parallel.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Threading.Tasks.Parallel.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Threading.Tasks.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Threading.Tasks.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Threading.Thread.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Threading.Thread.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Threading.ThreadPool.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Threading.ThreadPool.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Threading.Timer.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Threading.Timer.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Threading.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Threading.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.ValueTuple.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.ValueTuple.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Xml.ReaderWriter.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Xml.ReaderWriter.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Xml.XDocument.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Xml.XDocument.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Xml.XPath.XDocument.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Xml.XPath.XDocument.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Xml.XPath.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Xml.XPath.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Xml.XmlDocument.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Xml.XmlDocument.dll
--------------------------------------------------------------------------------
/GitUI/Resources/System.Xml.XmlSerializer.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/System.Xml.XmlSerializer.dll
--------------------------------------------------------------------------------
/GitUI/Resources/dragon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/dragon.png
--------------------------------------------------------------------------------
/GitUI/Resources/netstandard.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/GitUI/Resources/netstandard.dll
--------------------------------------------------------------------------------
/GitUI/Themes/Generic.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
10 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/GitUI/UI/BottomToolBar.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/GitUI/UI/BottomToolBar.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Navigation;
13 | using System.Windows.Shapes;
14 |
15 | namespace GitUI.UI
16 | {
17 | ///
18 | /// Interaction logic for BottomToolBar.xaml
19 | ///
20 | public partial class BottomToolBar : UserControl
21 | {
22 | private GitViewModel gitViewModel;
23 | internal GitViewModel GitViewModel
24 | {
25 | set
26 | {
27 | gitViewModel = value;
28 | //this.txtDirectory.Text = gitViewModel.Tacker.GitWorkingDirectory;
29 | }
30 | }
31 | public BottomToolBar()
32 | {
33 | InitializeComponent();
34 | }
35 |
36 | private void btnGo_Click(object sender, RoutedEventArgs e)
37 | {
38 |
39 | }
40 |
41 |
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/GitUI/UI/BranchPicker.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/GitUI/UI/CommitHead.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
21 |
22 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/GitUI/UI/CommitRemote.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/GitUI/UI/CommitRemote.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Navigation;
13 | using System.Windows.Shapes;
14 |
15 | namespace GitScc.UI
16 | {
17 | ///
18 | /// Interaction logic for CommitRemote.xaml
19 | ///
20 | public partial class CommitRemote : UserControl
21 | {
22 | public CommitRemote()
23 | {
24 | InitializeComponent();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/GitUI/UI/CommitTag.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/GitUI/UI/CommitTag.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Navigation;
13 | using System.Windows.Shapes;
14 | using GitUI;
15 |
16 | namespace GitScc.UI
17 | {
18 | ///
19 | /// Interaction logic for CommitTag.xaml
20 | ///
21 | public partial class CommitTag : UserControl
22 | {
23 | public CommitTag()
24 | {
25 | InitializeComponent();
26 | }
27 |
28 | private void DeleteTag_Click(object sender, RoutedEventArgs e)
29 | {
30 | dynamic tag = this.DataContext;
31 |
32 | if (MessageBox.Show("Are you sure you want to delete tag: " + tag.Name,
33 | "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
34 | {
35 | var ret = GitViewModel.Current.DeleteTag(tag.Name);
36 | HistoryViewCommands.ShowMessage.Execute(new { GitBashResult = ret }, this);
37 | }
38 | }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/GitUI/UI/GitConsole.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
12 |
13 |
14 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/GitUI/UI/HistoryGraph.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
32 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/GitUI/UI/Loading.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/GitUI/UI/Loading.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Navigation;
13 | using System.Windows.Shapes;
14 |
15 | namespace GitScc.UI
16 | {
17 | ///
18 | /// Interaction logic for Loading.xaml
19 | ///
20 | public partial class Loading : UserControl
21 | {
22 | public Loading()
23 | {
24 | InitializeComponent();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/GitUI/UI/MouseHandlingMode.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace GitScc.UI
7 | {
8 | ///
9 | /// Defines the current state of the mouse handling logic.
10 | ///
11 | public enum MouseHandlingMode
12 | {
13 | ///
14 | /// Not in any special mode.
15 | ///
16 | None,
17 |
18 | ///
19 | /// The user is left-dragging rectangles with the mouse.
20 | ///
21 | DraggingRectangles,
22 |
23 | ///
24 | /// The user is left-mouse-button-dragging to pan the viewport.
25 | ///
26 | Panning,
27 |
28 | ///
29 | /// The user is holding down shift and left-clicking or right-clicking to zoom in or out.
30 | ///
31 | Zooming,
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/GitUI/ZoomAndPan/AnimationHelper.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Media.Animation;
7 |
8 | namespace ZoomAndPan
9 | {
10 | ///
11 | /// A helper class to simplify animation.
12 | ///
13 | public static class AnimationHelper
14 | {
15 | ///
16 | /// Starts an animation to a particular value on the specified dependency property.
17 | ///
18 | public static void StartAnimation(UIElement animatableElement, DependencyProperty dependencyProperty, double toValue, double animationDurationSeconds)
19 | {
20 | StartAnimation(animatableElement, dependencyProperty, toValue, animationDurationSeconds, null);
21 | }
22 |
23 | ///
24 | /// Starts an animation to a particular value on the specified dependency property.
25 | /// You can pass in an event handler to call when the animation has completed.
26 | ///
27 | public static void StartAnimation(UIElement animatableElement, DependencyProperty dependencyProperty, double toValue, double animationDurationSeconds, EventHandler completedEvent)
28 | {
29 | double fromValue = (double)animatableElement.GetValue(dependencyProperty);
30 |
31 | DoubleAnimation animation = new DoubleAnimation();
32 | animation.From = fromValue;
33 | animation.To = toValue;
34 | animation.Duration = TimeSpan.FromSeconds(animationDurationSeconds);
35 |
36 | animation.Completed += delegate(object sender, EventArgs e)
37 | {
38 | //
39 | // When the animation has completed bake final value of the animation
40 | // into the property.
41 | //
42 | animatableElement.SetValue(dependencyProperty, animatableElement.GetValue(dependencyProperty));
43 | CancelAnimation(animatableElement, dependencyProperty);
44 |
45 | if (completedEvent != null)
46 | {
47 | completedEvent(sender, e);
48 | }
49 | };
50 |
51 | animation.Freeze();
52 |
53 | animatableElement.BeginAnimation(dependencyProperty, animation);
54 | }
55 |
56 | ///
57 | /// Cancel any animations that are running on the specified dependency property.
58 | ///
59 | public static void CancelAnimation(UIElement animatableElement, DependencyProperty dependencyProperty)
60 | {
61 | animatableElement.BeginAnimation(dependencyProperty, null);
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/GitUI/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/GitUI/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/JGit licence.txt:
--------------------------------------------------------------------------------
1 | /*
2 | * All rights reserved.
3 | *
4 | * Redistribution and use in source and binary forms, with or
5 | * without modification, are permitted provided that the following
6 | * conditions are met:
7 | *
8 | * - Redistributions of source code must retain the above copyright
9 | * notice, this list of conditions and the following disclaimer.
10 | *
11 | * - Redistributions in binary form must reproduce the above
12 | * copyright notice, this list of conditions and the following
13 | * disclaimer in the documentation and/or other materials provided
14 | * with the distribution.
15 | *
16 | * - Neither the name of the Eclipse Foundation, Inc. nor the
17 | * names of its contributors may be used to endorse or promote
18 | * products derived from this software without specific prior
19 | * written permission.
20 | *
21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
22 | * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
23 | * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
26 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
31 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
33 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 | */
35 |
--------------------------------------------------------------------------------
/MiscUtil licence.txt:
--------------------------------------------------------------------------------
1 | "Miscellaneous Utility Library" Software Licence
2 |
3 | Version 1.0
4 |
5 | Copyright (c) 2004-2008 Jon Skeet and Marc Gravell.
6 | All rights reserved.
7 |
8 | Redistribution and use in source and binary forms, with or without
9 | modification, are permitted provided that the following conditions
10 | are met:
11 |
12 | 1. Redistributions of source code must retain the above copyright
13 | notice, this list of conditions and the following disclaimer.
14 |
15 | 2. Redistributions in binary form must reproduce the above copyright
16 | notice, this list of conditions and the following disclaimer in the
17 | documentation and/or other materials provided with the distribution.
18 |
19 | 3. The end-user documentation included with the redistribution, if
20 | any, must include the following acknowledgment:
21 |
22 | "This product includes software developed by Jon Skeet
23 | and Marc Gravell. Contact skeet@pobox.com, or see
24 | http://www.pobox.com/~skeet/)."
25 |
26 | Alternately, this acknowledgment may appear in the software itself,
27 | if and wherever such third-party acknowledgments normally appear.
28 |
29 | 4. The name "Miscellaneous Utility Library" must not be used to endorse
30 | or promote products derived from this software without prior written
31 | permission. For written permission, please contact skeet@pobox.com.
32 |
33 | 5. Products derived from this software may not be called
34 | "Miscellaneous Utility Library", nor may "Miscellaneous Utility Library"
35 | appear in their name, without prior written permission of Jon Skeet.
36 |
37 | THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
38 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
39 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
40 | IN NO EVENT SHALL JON SKEET BE LIABLE FOR ANY DIRECT, INDIRECT,
41 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
42 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
43 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
44 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
45 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
46 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
47 | POSSIBILITY OF SUCH DAMAGE.
48 |
--------------------------------------------------------------------------------
/PlatformUI/TreeViewColors.cs:
--------------------------------------------------------------------------------
1 | namespace GitScc.PlatformUI
2 | {
3 | using System.Diagnostics;
4 | using Microsoft.VisualStudio.Shell;
5 |
6 | public static class TreeViewColors
7 | {
8 | [DebuggerBrowsable(DebuggerBrowsableState.Never)]
9 | public static object SelectedItemActiveBrushKey
10 | {
11 | get
12 | {
13 | return GetResourceKey("SelectedItemActiveBrushKey", VsBrushes.ActiveCaptionKey);
14 | }
15 | }
16 |
17 | [DebuggerBrowsable(DebuggerBrowsableState.Never)]
18 | public static object SelectedItemActiveTextBrushKey
19 | {
20 | get
21 | {
22 | return GetResourceKey("SelectedItemActiveTextBrushKey", VsBrushes.CaptionTextKey);
23 | }
24 | }
25 |
26 | [DebuggerBrowsable(DebuggerBrowsableState.Never)]
27 | public static object SelectedItemInactiveBrushKey
28 | {
29 | get
30 | {
31 | return GetResourceKey("SelectedItemInactiveBrushKey", VsBrushes.InactiveCaptionKey);
32 | }
33 | }
34 |
35 | [DebuggerBrowsable(DebuggerBrowsableState.Never)]
36 | public static object SelectedItemInactiveTextBrushKey
37 | {
38 | get
39 | {
40 | return GetResourceKey("SelectedItemInactiveTextBrushKey", VsBrushes.InactiveCaptionTextKey);
41 | }
42 | }
43 |
44 | private static object GetResourceKey(string resourceName, object defaultKey)
45 | {
46 | return PlatformColorHelper.GetResourceKey(typeof(TreeViewColors), resourceName) ?? defaultKey;
47 | }
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Properties/AssemblyInfo.cs
--------------------------------------------------------------------------------
/Resources/Compare.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Resources/Compare.png
--------------------------------------------------------------------------------
/Resources/History.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Resources/History.png
--------------------------------------------------------------------------------
/Resources/Images_24bit.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Resources/Images_24bit.bmp
--------------------------------------------------------------------------------
/Resources/Images_32bit.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Resources/Images_32bit.bmp
--------------------------------------------------------------------------------
/Resources/Images_32bit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Resources/Images_32bit.png
--------------------------------------------------------------------------------
/Resources/Loading.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Resources/Loading.png
--------------------------------------------------------------------------------
/Resources/PendingCheckins.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Resources/PendingCheckins.png
--------------------------------------------------------------------------------
/Resources/Product.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Resources/Product.ico
--------------------------------------------------------------------------------
/Resources/Refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Resources/Refresh.png
--------------------------------------------------------------------------------
/Resources/SccGlyphs.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Resources/SccGlyphs.bmp
--------------------------------------------------------------------------------
/Resources/SccGlyphs2012.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Resources/SccGlyphs2012.png
--------------------------------------------------------------------------------
/Resources/Switch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Resources/Switch.png
--------------------------------------------------------------------------------
/Resources/UndoCheckout.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/Resources/UndoCheckout.png
--------------------------------------------------------------------------------
/TODO.md:
--------------------------------------------------------------------------------
1 | Are you bored? Do you need more adventure in you life. Do you like living on the edge!?
2 |
3 | Well, if that is you, please checkout the github link.. This plugin is under active developement and I have started publishing beta releases to github. What don't you try a beta release! Come on! You know you want to!!!
4 |
5 | All the cool kids are doing it!!!! That annoying bug that you hate might be fixed! Perhaps you may even decide to patch a bug you found.. Who knows!
6 |
7 |
8 | Git Source Control Provider TODO List
9 | =====================================
10 |
11 |
12 | Features
13 | --------
14 | * Detect binary file, display image files
15 | * Drop down list (of multiple repositories) in the Pending Changes Tool Window
16 | * Display status for sub module
17 | * Stand alone History Viewer Program
18 |
--------------------------------------------------------------------------------
/UI/BranchPicker.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/UI/CommitBox.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Navigation;
13 | using System.Windows.Shapes;
14 |
15 | namespace GitScc.UI
16 | {
17 | ///
18 | /// Interaction logic for CommitBox.xaml
19 | ///
20 | public partial class CommitBox : UserControl
21 | {
22 | // need to match the size of top grid
23 | internal const int HEIGHT = 120;
24 | internal const int WIDTH = 200;
25 |
26 | public bool Selected { get; set; }
27 |
28 | public CommitBox()
29 | {
30 | InitializeComponent();
31 | }
32 |
33 | private void root_MouseUp(object sender, MouseButtonEventArgs e)
34 | {
35 | HistoryViewCommands.OpenCommitDetails.Execute(this.txtId.Text, null);
36 | }
37 |
38 | private void txtComment_MouseEnter(object sender, MouseEventArgs e)
39 | {
40 | VisualStateManager.GoToElementState(this.root, "MouseOverState", true);
41 | }
42 |
43 | private void txtComment_MouseLeave(object sender, MouseEventArgs e)
44 | {
45 | VisualStateManager.GoToElementState(this.root, "NormalState", true);
46 | }
47 |
48 | private void Button_Click(object sender, RoutedEventArgs e)
49 | {
50 | this.Selected = !this.Selected;
51 | VisualStateManager.GoToElementState(this.root, this.Selected ? "SelectedSate" : "NotSelectedState", true);
52 | HistoryViewCommands.SelectCommit.Execute(this.txtId.Text, null);
53 | e.Handled = true;
54 | }
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/UI/CommitHead.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/UI/CommitHead.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Navigation;
13 | using System.Windows.Shapes;
14 |
15 | namespace GitScc.UI
16 | {
17 | ///
18 | /// Interaction logic for CommitHead.xaml
19 | ///
20 | public partial class CommitHead : UserControl
21 | {
22 | public CommitHead()
23 | {
24 | InitializeComponent();
25 | }
26 |
27 | private void UserControl_Loaded(object sender, RoutedEventArgs e)
28 | {
29 | if (this.textBlock.Text == "HEAD")
30 | {
31 | this.border.Background = this.border.BorderBrush =
32 | this.polygon.Fill = new SolidColorBrush(Color.FromArgb(128, 255, 0, 0));
33 | this.textBlock.Foreground = new SolidColorBrush(Color.FromRgb(255, 255, 255));
34 | }
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/UI/CommitRemote.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/UI/CommitRemote.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Navigation;
13 | using System.Windows.Shapes;
14 |
15 | namespace GitScc.UI
16 | {
17 | ///
18 | /// Interaction logic for CommitRemote.xaml
19 | ///
20 | public partial class CommitRemote : UserControl
21 | {
22 | public CommitRemote()
23 | {
24 | InitializeComponent();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/UI/CommitTag.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/UI/CommitTag.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Navigation;
13 | using System.Windows.Shapes;
14 |
15 | namespace GitScc.UI
16 | {
17 | ///
18 | /// Interaction logic for CommitTag.xaml
19 | ///
20 | public partial class CommitTag : UserControl
21 | {
22 | public CommitTag()
23 | {
24 | InitializeComponent();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/UI/GitConsole.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
12 |
13 |
14 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/UI/HistoryGraph.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
12 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/UI/Loading.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/UI/Loading.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 | using System.Windows.Data;
8 | using System.Windows.Documents;
9 | using System.Windows.Input;
10 | using System.Windows.Media;
11 | using System.Windows.Media.Imaging;
12 | using System.Windows.Navigation;
13 | using System.Windows.Shapes;
14 |
15 | namespace GitScc.UI
16 | {
17 | ///
18 | /// Interaction logic for Loading.xaml
19 | ///
20 | public partial class Loading : UserControl
21 | {
22 | public Loading()
23 | {
24 | InitializeComponent();
25 | }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/_LibGit2Sharp/LibGit2Sharp.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/_LibGit2Sharp/LibGit2Sharp.dll
--------------------------------------------------------------------------------
/_LibGit2Sharp/ProcessForUpdatingLibGit2Sharp.txt:
--------------------------------------------------------------------------------
1 |
2 | from https://github.com/deadlydog/VS.DiffAllFiles/blob/master/VS.DiffAllFiles/_LibGit2Sharp/ProcessForUpdatingLibGit2Sharp.txt
3 |
4 | To update LibGit2Sharp to a new version, follow these steps:
5 | 1. Update the LibGit2Sharp NuGet package to obtain the new version of the LibGit2Sharp.dll, and it's corresponding LibGit2Sharp.NativeBinaries NuGet package's git2-*.dll.
6 | 2. Run the following batch script against the LibGit2Sharp.dll to create a signed version of the dll file with a new strong name (i.e. PublicKeyToken). We do this to
7 | prevent runtime conflicts with other Visual Studio extensions that may also be using a different version of this assembly. The script paths may need to be updated.
8 |
9 | :: Strongly sign the LibGit2Sharp.dll, as VS Extensions want strongly signed assemblies and we want to avoid runtime version conflicts.
10 | :: http://www.codeproject.com/Tips/341645/Referenced-assembly-does-not-have-a-strong-name
11 | cd "$(SolutionDir)packages\LibGit2Sharp.0.23.1\lib\net40\"
12 | "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\ildasm.exe" /all /out=LibGit2Sharp.il LibGit2Sharp.dll
13 | "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\sn.exe" -k MyLibGit2SharpKey.snk
14 | "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ilasm.exe" /dll /key=MyLibGit2SharpKey.snk LibGit2Sharp.il
15 |
16 | 3. Replace the file at VS.DiffAllFiles\_LibGit2Sharp\LibGit2Sharp.dll with the new signed version.
17 | 4. Remove the LibGit2Sharp reference from all of the VS projects, and re-add it, pointing it to the new signed version.
18 | 5. Delete the VS.DiffAllFiles\_LibGit2Sharp\git2-*.dll file.
19 | 6. Copy the x86 version of the git2-*.dll file from the new LigGit2Sharp.NativeBinaries NuGet package to the VS.DiffAllFiles\_LibGit2Sharp directory.
20 | e.g. "packages\LibGit2Sharp.NativeBinaries.1.0.164\runtimes\win7-x86\native\git2-a5cf255.dll"
21 | 7. Update the _LibGit2Sharp shortcut files in the other VS projects.
22 | 8. In the VSIX projects, change the _LibGit2Sharp\git2-*.dll properties to have Include In VSIX set to "True", and set the VSIX Sub Path to "\".
23 | This will ensure that the git2-*.dll file required by LibGit2Sharp.dll is included in the root directory of the extension when it is installed.
--------------------------------------------------------------------------------
/_LibGit2Sharp/git2-a904fc6.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/_LibGit2Sharp/git2-a904fc6.dll
--------------------------------------------------------------------------------
/appveyor.dev.yml:
--------------------------------------------------------------------------------
1 | -
2 | image: Visual Studio 2017
3 | configuration: Release
4 | skip_tags: true
5 | branches:
6 | only:
7 | - dev
8 |
9 |
10 | environment:
11 | majorVersion: 1
12 | minorVersion: 9
13 | patchVersion: 1
14 | access_token:
15 | secure: D9+WTOpCzI8qcrBNULSrWHJeR4thDu4jxQmY/oHux1CYpAjfk2rrpShn8loWHGQc
16 | gitHubUsername:
17 | secure: /fPbfB2kZ2Ew/pN/Pt36zA==
18 | gitRepo: Git-Source-Control-Provider
19 |
20 | version: $(majorVersion).$(minorVersion).$(patchVersion).{build}
21 |
22 |
23 | install:
24 |
25 | - ps: >-
26 |
27 | (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
28 |
29 | before_build:
30 | - ps: >-
31 | $vsixPath = "$env:appveyor_build_folder\GitSccProvider\source.extension.vsixmanifest"
32 | $manifestXml = New-Object XML
33 | $manifestXml.Load($vsixPath)
34 | $manifestXml.PackageManifest.Metadata.Identity.Version = $env:appveyor_build_version
35 | $manifestXml.save($vsixPath)
36 | - ps: Vsix-TokenReplacement GitSccProvider\source.extension.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"'
37 | build_script:
38 | - nuget restore -Verbosity quiet
39 | - msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
40 |
41 | test: off
42 |
43 | artifacts:
44 |
45 | - path: GitSccProvider\bin\Release\GitSccProvider.vsix
46 |
47 | name: GitSccProvider
48 | before_deploy:
49 | - ps: $env:tagName = "GSCP-CI"
50 | - ps: .\BuildScripts\CleanRelease.ps1 -gitHubUsername $env:gitHubUsername -gitHubRepository $env:gitRepo -tagName $env:tagName -gitHubApiKey $env:access_token
51 |
52 | after_build:
53 | - ps: Vsix-PushArtifacts | Vsix-PublishToGallery
54 |
55 | deploy:
56 | release: GSCP-CI-Build
57 | tag : GSCP-CI
58 | description: GSCP CI Build $(appveyor_build_version)
59 | provider: GitHub
60 | auth_token: $(access_token) # your encrypted token from GitHub
61 | artifact: GitSccProvider\bin\Release\GitSccProvider.vsix # upload all NuGet packages to release assets
62 | draft: false
63 | prerelease: true
64 |
65 |
--------------------------------------------------------------------------------
/appveyor.yml:
--------------------------------------------------------------------------------
1 | -
2 | image: Visual Studio 2017
3 | configuration: Release
4 | skip_tags: true
5 |
6 | branches:
7 | only:
8 | - master
9 |
10 | version: 1.9.{build}
11 | pull_requests:
12 | do_not_increment_build_number: true
13 |
14 |
15 | install:
16 |
17 | - ps: >-
18 |
19 | (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex
20 |
21 | before_build:
22 | - ps: Vsix-IncrementVsixVersion | Vsix-UpdateBuildVersion
23 | - ps: Vsix-TokenReplacement GitSccProvider\source.extension.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"'
24 |
25 | build_script:
26 | - nuget restore -Verbosity quiet
27 | - msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
28 | test: off
29 | artifacts:
30 | - path: GitSccProvider\bin\Release\GitSccProvider.vsix
31 | name: GitSccProvider
32 |
33 |
34 | deploy:
35 | release: Release $(appveyor_build_version)
36 | description: GSCP Release Build -v$(appveyor_build_version)
37 | provider: GitHub
38 | auth_token:
39 | secure: D9+WTOpCzI8qcrBNULSrWHJeR4thDu4jxQmY/oHux1CYpAjfk2rrpShn8loWHGQc # your encrypted token from GitHub
40 | artifact: GitSccProvider\bin\Release\GitSccProvider.vsix # upload all NuGet packages to release assets
41 | draft: false
42 | prerelease: false
--------------------------------------------------------------------------------
/packages/MvvmLight.4.1.26.1/MvvmLight.4.1.26.1.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | MvvmLight
5 | 4.1.26.1
6 | MVVM Light
7 | Laurent Bugnion (GalaSoft)
8 | Laurent Bugnion (GalaSoft)
9 | http://mvvmlight.codeplex.com/license
10 | http://www.galasoft.ch/mvvm
11 | http://www.galasoft.ch/mvvm/resources/Logo/icon_100x100_transparent.png
12 | true
13 | The MVVM Light Toolkit is a set of components helping people to get started in the Model-View-ViewModel pattern in Silverlight, WPF, Windows Phone 7 and Windows 8. It is a light and pragmatic framework that contains only the essential components needed. This is V4 RTM!
14 | The MVVM Light Toolkit is a set of components helping people to get started in the Model-View-ViewModel pattern in all versions of Silverlight, WPF, Windows Phone 7 and Windows 8.
15 | Copyright 2013 Laurent Bugnion (GalaSoft)
16 | en-US
17 | mvvm mvvmlight silverlight wp7 windows8 winrt win8 wpf windowsphone windowsphone7 windowsphone8
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/packages/MvvmLight.4.1.26.1/lib/net40/GalaSoft.MvvmLight.WPF4.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/packages/MvvmLight.4.1.26.1/lib/net40/GalaSoft.MvvmLight.WPF4.dll
--------------------------------------------------------------------------------
/packages/repositories.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/sign.bat:
--------------------------------------------------------------------------------
1 | cd "packages\LibGit2Sharp.0.25.0\lib\netstandard2.0"
2 | "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\ildasm.exe" /all /out=LibGit2Sharp.il LibGit2Sharp.dll
3 | "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\sn.exe" -k MyLibGit2SharpKey.snk
4 | "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ilasm.exe" /dll /key=MyLibGit2SharpKey.snk LibGit2Sharp.il
5 |
--------------------------------------------------------------------------------
/solution explorer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jzoss/Git-Source-Control-Provider/3bb17f71d3eedd32a382bb4b813ff2880b20d35f/solution explorer.png
--------------------------------------------------------------------------------
]