diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..6ad8425
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,13 @@
+root = true
+
+[**]
+indent_style = space
+indent_size = 2
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+
+[**/*.sln]
+indent_style = tab
+tab_width = 2
diff --git a/.gitignore b/.gitignore
index 0e1d97b..0475a2f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,207 +1,502 @@
-## Ignore Visual Studio temporary files, build results, and
-## files generated by popular Visual Studio add-ons.
-
-# User-specific files
-*.suo
-*.user
-*.userosscache
-*.sln.docstates
-
-# User-specific files (MonoDevelop/Xamarin Studio)
-*.userprefs
-
-# Build results
-[Dd]ebug/
-[Dd]ebugPublic/
-[Rr]elease/
-[Rr]eleases/
-x64/
-x86/
-build/
-bld/
-[Bb]in/
-[Oo]bj/
-
-# Visual Studio 2015 cache/options directory
-.vs/
-
-# MSTest test Results
-[Tt]est[Rr]esult*/
-[Bb]uild[Ll]og.*
-
-# NUNIT
-*.VisualState.xml
-TestResult.xml
-
-# Build Results of an ATL Project
-[Dd]ebugPS/
-[Rr]eleasePS/
-dlldata.c
-
-# DNX
-project.lock.json
-artifacts/
-
-*_i.c
-*_p.c
-*_i.h
-*.ilk
-*.meta
-*.obj
-*.pch
-*.pdb
-*.pgc
-*.pgd
-*.rsp
-*.sbr
-*.tlb
-*.tli
-*.tlh
-*.tmp
-*.tmp_proj
-*.log
-*.vspscc
-*.vssscc
-.builds
-*.pidb
-*.svclog
-*.scc
-
-# Chutzpah Test files
-_Chutzpah*
-
-# Visual C++ cache files
-ipch/
-*.aps
-*.ncb
-*.opensdf
-*.sdf
-*.cachefile
-*.VC.opendb
-*.VC.db
-
-# Visual Studio profiler
-*.psess
-*.vsp
-*.vspx
-
-# TFS 2012 Local Workspace
-$tf/
-
-# Guidance Automation Toolkit
-*.gpState
-
-# ReSharper is a .NET coding add-in
-_ReSharper*/
-*.[Rr]e[Ss]harper
-*.DotSettings.user
-
-# JustCode is a .NET coding add-in
-.JustCode
-
-# TeamCity is a build add-in
-_TeamCity*
-
-# DotCover is a Code Coverage Tool
-*.dotCover
-
-# NCrunch
-_NCrunch_*
-.*crunch*.local.xml
-
-# MightyMoose
-*.mm.*
-AutoTest.Net/
-
-# Web workbench (sass)
-.sass-cache/
-
-# Installshield output folder
-[Ee]xpress/
-
-# DocProject is a documentation generator add-in
-DocProject/buildhelp/
-DocProject/Help/*.HxT
-DocProject/Help/*.HxC
-DocProject/Help/*.hhc
-DocProject/Help/*.hhk
-DocProject/Help/*.hhp
-DocProject/Help/Html2
-DocProject/Help/html
-
-# Click-Once directory
-publish/
-
-# Publish Web Output
-*.[Pp]ublish.xml
-*.azurePubxml
-# TODO: Comment the next line if you want to checkin your web deploy settings
-# but database connection strings (with potential passwords) will be unencrypted
-*.pubxml
-*.publishproj
-
-# NuGet Packages
-*.nupkg
-# The packages folder can be ignored because of Package Restore
-**/packages/*
-# except build/, which is used as an MSBuild target.
-!**/packages/build/
-# Uncomment if necessary however generally it will be regenerated when needed
-#!**/packages/repositories.config
-
-# Windows Azure Build Output
-csx/
-*.build.csdef
-
-# Windows Store app package directory
-AppPackages/
-
-# Visual Studio cache files
-# files ending in .cache can be ignored
-*.[Cc]ache
-# but keep track of directories ending in .cache
-!*.[Cc]ache/
-
-# Others
-ClientBin/
-[Ss]tyle[Cc]op.*
-~$*
-*~
-*.dbmdl
-*.dbproj.schemaview
-*.pfx
-*.publishsettings
-node_modules/
-orleans.codegen.cs
-
-# RIA/Silverlight projects
-Generated_Code/
-
-# Backup & report files from converting an old project file
-# to a newer Visual Studio version. Backup files are not needed,
-# because we have git ;-)
-_UpgradeReport_Files/
-Backup*/
-UpgradeLog*.XML
-UpgradeLog*.htm
-
-# SQL Server files
-*.mdf
-*.ldf
-
-# Business Intelligence projects
-*.rdl.data
-*.bim.layout
-*.bim_*.settings
-
-# Microsoft Fakes
-FakesAssemblies/
-
-# Node.js Tools for Visual Studio
-.ntvs_analysis.dat
-
-# Visual Studio 6 build log
-*.plg
-
-# Visual Studio 6 workspace options file
-*.opt
\ No newline at end of file
+# Created by https://www.toptal.com/developers/gitignore/api/vim,c++,windows,visualstudio,visualstudiocode,vcpkg
+# Edit at https://www.toptal.com/developers/gitignore?templates=vim,c++,windows,visualstudio,visualstudiocode,vcpkg
+
+### C++ ###
+# Prerequisites
+*.d
+
+# Compiled Object files
+*.slo
+*.lo
+*.o
+*.obj
+
+# Precompiled Headers
+*.gch
+*.pch
+
+# Compiled Dynamic libraries
+*.so
+*.dylib
+*.dll
+
+# Fortran module files
+*.mod
+*.smod
+
+# Compiled Static libraries
+*.lai
+*.la
+*.a
+*.lib
+
+# Executables
+*.exe
+*.out
+*.app
+
+### vcpkg ###
+# Vcpkg
+
+## Manifest Mode
+vcpkg_installed/
+
+### Vim ###
+# Swap
+[._]*.s[a-v][a-z]
+!*.svg # comment out if you don't need vector files
+[._]*.sw[a-p]
+[._]s[a-rt-v][a-z]
+[._]ss[a-gi-z]
+[._]sw[a-p]
+
+# Session
+Session.vim
+Sessionx.vim
+
+# Temporary
+.netrwhist
+*~
+# Auto-generated tag files
+tags
+# Persistent undo
+[._]*.un~
+
+### VisualStudioCode ###
+.vscode/*
+!.vscode/settings.json
+!.vscode/tasks.json
+!.vscode/launch.json
+!.vscode/extensions.json
+!.vscode/*.code-snippets
+
+# Local History for Visual Studio Code
+.history/
+
+# Built Visual Studio Code Extensions
+*.vsix
+
+### VisualStudioCode Patch ###
+# Ignore all local history of files
+.history
+.ionide
+
+# Support for Project snippet scope
+.vscode/*.code-snippets
+
+# Ignore code-workspaces
+*.code-workspace
+
+### Windows ###
+# Windows thumbnail cache files
+Thumbs.db
+Thumbs.db:encryptable
+ehthumbs.db
+ehthumbs_vista.db
+
+# Dump file
+*.stackdump
+
+# Folder config file
+[Dd]esktop.ini
+
+# Recycle Bin used on file shares
+$RECYCLE.BIN/
+
+# Windows Installer files
+*.cab
+*.msi
+*.msix
+*.msm
+*.msp
+
+# Windows shortcuts
+*.lnk
+
+### VisualStudio ###
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+##
+## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
+
+# User-specific files
+*.rsuser
+*.suo
+*.user
+*.userosscache
+*.sln.docstates
+
+# User-specific files (MonoDevelop/Xamarin Studio)
+*.userprefs
+
+# Mono auto generated files
+mono_crash.*
+
+# Build results
+[Dd]ebug/
+[Dd]ebugPublic/
+[Rr]elease/
+[Rr]eleases/
+x64/
+x86/
+[Ww][Ii][Nn]32/
+[Aa][Rr][Mm]/
+[Aa][Rr][Mm]64/
+bld/
+[Bb]in/
+[Oo]bj/
+[Ll]og/
+[Ll]ogs/
+
+# Visual Studio 2015/2017 cache/options directory
+.vs/
+# Uncomment if you have tasks that create the project's static files in wwwroot
+#wwwroot/
+
+# Visual Studio 2017 auto generated files
+Generated\ Files/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+# NUnit
+*.VisualState.xml
+TestResult.xml
+nunit-*.xml
+
+# Build Results of an ATL Project
+[Dd]ebugPS/
+[Rr]eleasePS/
+dlldata.c
+
+# Benchmark Results
+BenchmarkDotNet.Artifacts/
+
+# .NET Core
+project.lock.json
+project.fragment.lock.json
+artifacts/
+
+# ASP.NET Scaffolding
+ScaffoldingReadMe.txt
+
+# StyleCop
+StyleCopReport.xml
+
+# Files built by Visual Studio
+*_i.c
+*_p.c
+*_h.h
+*.ilk
+*.meta
+*.iobj
+*.pdb
+*.ipdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*_wpftmp.csproj
+*.log
+*.tlog
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.svclog
+*.scc
+
+# Chutzpah Test files
+_Chutzpah*
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opendb
+*.opensdf
+*.sdf
+*.cachefile
+*.VC.db
+*.VC.VC.opendb
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+*.sap
+
+# Visual Studio Trace Files
+*.e2e
+
+# TFS 2012 Local Workspace
+$tf/
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+*.DotSettings.user
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# AxoCover is a Code Coverage Tool
+.axoCover/*
+!.axoCover/settings.json
+
+# Coverlet is a free, cross platform Code Coverage Tool
+coverage*.json
+coverage*.xml
+coverage*.info
+
+# Visual Studio code coverage results
+*.coverage
+*.coveragexml
+
+# NCrunch
+_NCrunch_*
+.*crunch*.local.xml
+nCrunchTemp_*
+
+# MightyMoose
+*.mm.*
+AutoTest.Net/
+
+# Web workbench (sass)
+.sass-cache/
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.[Pp]ublish.xml
+*.azurePubxml
+# Note: Comment the next line if you want to checkin your web deploy settings,
+# but database connection strings (with potential passwords) will be unencrypted
+*.pubxml
+*.publishproj
+
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
+# checkin your Azure Web App publish settings, but sensitive information contained
+# in these scripts will be unencrypted
+PublishScripts/
+
+# NuGet Packages
+*.nupkg
+# NuGet Symbol Packages
+*.snupkg
+# The packages folder can be ignored because of Package Restore
+**/[Pp]ackages/*
+# except build/, which is used as an MSBuild target.
+!**/[Pp]ackages/build/
+# Uncomment if necessary however generally it will be regenerated when needed
+#!**/[Pp]ackages/repositories.config
+# NuGet v3's project.json files produces more ignorable files
+*.nuget.props
+*.nuget.targets
+
+# Microsoft Azure Build Output
+csx/
+*.build.csdef
+
+# Microsoft Azure Emulator
+ecf/
+rcf/
+
+# Windows Store app package directories and files
+AppPackages/
+BundleArtifacts/
+Package.StoreAssociation.xml
+_pkginfo.txt
+*.appx
+*.appxbundle
+*.appxupload
+
+# Visual Studio cache files
+# files ending in .cache can be ignored
+*.[Cc]ache
+# but keep track of directories ending in .cache
+!?*.[Cc]ache/
+
+# Others
+ClientBin/
+~$*
+*.dbmdl
+*.dbproj.schemaview
+*.jfm
+*.pfx
+*.publishsettings
+orleans.codegen.cs
+
+# Including strong name files can present a security risk
+# (https://github.com/github/gitignore/pull/2483#issue-259490424)
+#*.snk
+
+# Since there are multiple workflows, uncomment next line to ignore bower_components
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
+#bower_components/
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file
+# to a newer Visual Studio version. Backup files are not needed,
+# because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+ServiceFabricBackup/
+*.rptproj.bak
+
+# SQL Server files
+*.mdf
+*.ldf
+*.ndf
+
+# Business Intelligence projects
+*.rdl.data
+*.bim.layout
+*.bim_*.settings
+*.rptproj.rsuser
+*- [Bb]ackup.rdl
+*- [Bb]ackup ([0-9]).rdl
+*- [Bb]ackup ([0-9][0-9]).rdl
+
+# Microsoft Fakes
+FakesAssemblies/
+
+# GhostDoc plugin setting file
+*.GhostDoc.xml
+
+# Node.js Tools for Visual Studio
+.ntvs_analysis.dat
+node_modules/
+
+# Visual Studio 6 build log
+*.plg
+
+# Visual Studio 6 workspace options file
+*.opt
+
+# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
+*.vbw
+
+# Visual Studio 6 auto-generated project file (contains which files were open etc.)
+*.vbp
+
+# Visual Studio 6 workspace and project file (working project files containing files to include in project)
+*.dsw
+*.dsp
+
+# Visual Studio 6 technical files
+
+# Visual Studio LightSwitch build output
+**/*.HTMLClient/GeneratedArtifacts
+**/*.DesktopClient/GeneratedArtifacts
+**/*.DesktopClient/ModelManifest.xml
+**/*.Server/GeneratedArtifacts
+**/*.Server/ModelManifest.xml
+_Pvt_Extensions
+
+# Paket dependency manager
+.paket/paket.exe
+paket-files/
+
+# FAKE - F# Make
+.fake/
+
+# CodeRush personal settings
+.cr/personal
+
+# Python Tools for Visual Studio (PTVS)
+__pycache__/
+*.pyc
+
+# Cake - Uncomment if you are using it
+# tools/**
+# !tools/packages.config
+
+# Tabs Studio
+*.tss
+
+# Telerik's JustMock configuration file
+*.jmconfig
+
+# BizTalk build output
+*.btp.cs
+*.btm.cs
+*.odx.cs
+*.xsd.cs
+
+# OpenCover UI analysis results
+OpenCover/
+
+# Azure Stream Analytics local run output
+ASALocalRun/
+
+# MSBuild Binary and Structured Log
+*.binlog
+
+# NVidia Nsight GPU debugger configuration file
+*.nvuser
+
+# MFractors (Xamarin productivity tool) working folder
+.mfractor/
+
+# Local History for Visual Studio
+.localhistory/
+
+# Visual Studio History (VSHistory) files
+.vshistory/
+
+# BeatPulse healthcheck temp database
+healthchecksdb
+
+# Backup folder for Package Reference Convert tool in Visual Studio 2017
+MigrationBackup/
+
+# Ionide (cross platform F# VS Code tools) working folder
+.ionide/
+
+# Fody - auto-generated XML schema
+FodyWeavers.xsd
+
+# VS Code files for those working on multiple tools
+
+# Local History for Visual Studio Code
+
+# Windows Installer files from build outputs
+
+# JetBrains Rider
+*.sln.iml
+
+### VisualStudio Patch ###
+# Additional files built by Visual Studio
+
+# End of https://www.toptal.com/developers/gitignore/api/vim,c++,windows,visualstudio,visualstudiocode,vcpkg
diff --git a/.gitmodules b/.gitmodules
index 3821fa9..a0a57f3 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,6 +1,3 @@
-[submodule "ext/libgit2"]
- path = ext/libgit2
- url = https://github.com/libgit2/libgit2.git
-[submodule "ext/rapidjson"]
- path = ext/rapidjson
- url = https://github.com/miloyip/rapidjson.git
+[submodule "vcpkg"]
+ path = vcpkg
+ url = https://github.com/microsoft/vcpkg.git
diff --git a/Directory.Build.props b/Directory.Build.props
new file mode 100644
index 0000000..0d8d4b7
--- /dev/null
+++ b/Directory.Build.props
@@ -0,0 +1,32 @@
+
+
+ $(MSBuildThisFileDirectory.TrimEnd('\\'))
+
+ Debug
+ x64
+
+ true
+
+ true
+ true
+ true
+
+
+
+
+
+ true
+
+
+
+ $(EnlistmentRoot)\vcpkg
+ $(Configuration)
+ $(Platform)-windows-static
+ true
+ false
+ true
+ true
+
+
+
+
diff --git a/Directory.Build.targets b/Directory.Build.targets
new file mode 100644
index 0000000..e4bae19
--- /dev/null
+++ b/Directory.Build.targets
@@ -0,0 +1,3 @@
+
+
+
diff --git a/NuGet.Config b/NuGet.Config
new file mode 100644
index 0000000..4ea3a4f
--- /dev/null
+++ b/NuGet.Config
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/README.md b/README.md
index adef2b5..1a3968c 100644
--- a/README.md
+++ b/README.md
@@ -1,223 +1,233 @@
-# git-status-cache #
-
-High performance cache for git repository status. Clients can retrieve information via named pipe.
-
-Useful for scenarios that frequently access status information (ex. shell prompts like [posh-git](https://github.com/cmarcusreid/posh-git/tree/useGitStatusCache)) that don't want to pay the cost of a "git status" (significantly more expensive with large repositories) when nothing has changed.
-
-## Clients ##
-
-- PowerShell: [git-status-cache-posh-client](https://github.com/cmarcusreid/git-status-cache-posh-client)
-
-## Communicating with the cache ##
-
-Clients connect to the "GitStatusCache" named pipe hosted by GitStatusCache.exe. All messages sent over the pipe must be UTF-8 encoded JSON.
-
-All requests must specify "Version" and "Action". The only currently available version is 1. Should the protocol change in the future the version number will be incremented to avoid breaking existing clients. The following operations may be specified in "Action".
-
-### GetStatus ###
-
-Retrieves current status information for the requested "Path".
-
-##### Sample request #####
-
- {
- "Path": "D:\\git-status-cache-posh-client",
- "Version": 1,
- "Action": "GetStatus"
- }
-
-##### Sample response #####
-
- {
- "Version": 1,
- "Path": "D:\\git-status-cache-posh-client",
- "RepoPath": "D:/git-status-cache-posh-client/.git/",
- "WorkingDir": "D:/git-status-cache-posh-client/",
- "State" : "",
- "Branch" : "master",
- "Upstream": "origin/master",
- "UpstreamGone": false,
- "AheadBy": 0,
- "BehindBy": 0,
- "IndexAdded": [],
- "IndexModified": [],
- "IndexDeleted": [],
- "IndexTypeChange": [],
- "IndexRenamed": [],
- "WorkingAdded": [],
- "WorkingModified": ["GitStatusCachePoshClient.ps1", "GitStatusCachePoshClient.psm1"],
- "WorkingDeleted": [],
- "WorkingTypeChange": [],
- "WorkingRenamed": [],
- "WorkingUnreadable": [],
- "Ignored": [],
- "Conflicted": []
- "Stashes" : [{
- "Name" : "stash@{0}",
- "Sha1Id" : "e24d59d0d03a3f680def647a7bb62f027d8671c",
- "Message" : "On master: Second stash!"
- }, {
- "Name" : "stash@{1}",
- "Sha1Id" : "0cbabd043bae55a76c3c041e6db2b129a0a4872",
- "Message" : "On master: My stash."
- }
- ]
- }
-
-### GetCacheStatistics ###
-
-Reports information about the cache's performance.
-
-##### Sample request #####
-
- {
- "Version": 1,
- "Action": "GetCacheStatistics"
- }
-
-##### Sample response #####
-
- {
- "Version": 1,
- "Uptime": "01:47:20",
- "TotalGetStatusRequests": 541,
- "AverageMillisecondsInGetStatus": 12.452925,
- "MinimumMillisecondsInGetStatus": 0.098923,
- "MaximumMillisecondsInGetStatus": 213.08858,
- "CacheHits": 383,
- "CacheMisses": 156,
- "EffectiveCachePrimes": 26,
- "TotalCachePrimes": 58,
- "EffectiveCacheInvalidations": 175,
- "TotalCacheInvalidations": 662,
- "FullCacheInvalidations": 0
- }
-
-### Shutdown ###
-
-Instructs the cache process to terminate itself.
-
-##### Sample request #####
-
- {
- "Version": 1,
- "Action": "Shutdown"
- }
-
-##### Sample response #####
-
- {
- "Version": 1,
- "Result": "Shutting down."
- }
-
-### Reporting errors ###
-
-Any errors with the request will be reported back with a "Version" and a human-readable "Error" message. For example:
-
- {
- "Version": 1,
- "Error": "Requested 'Path' is not part of a git repository."
- }
-
-## Performance ##
-
-Cost for serving a cache hit in the cache process is generally between 0.1-0.3 ms, but this metric doesn't include the overhead involved in a full request.
-
-The following measurements were taken on git repositories containing the specified file count. Each file was a text file containing a single sentence of text. Each case was run 5 times and the numbers reported below are averages. Each individual measurement was taken with a high resolution timer at 1 ms precision.
-
-### Request from git-status-cache-posh-client ###
-
-The measurements below capture:
-* Serializing a request to JSON in PowerShell.
-* Sending the JSON request over the named pipe.
-* Compute the current git status (cache miss) or retrieving it from the cache (cache hit) int the cache process.
-* Sending the JSON response over the named pipe back to the PowerShell client.
-* Deserializing the JSON response into a PSCustomObject
-
-##### No files modified #####
-
-| | cache miss | cache hit |
-|-------------------------|------------|-----------|
-| 10 file repository | 3.0 ms | 1.0 ms |
-| 100 file respository | 3.0 ms | 1.0 ms |
-| 1,000 file respository | 5.2 ms | 1.0 ms |
-| 10,000 file respository | 22.4 ms | 1.0 ms |
-| 100,000 file repository | 176.6 ms | 1.0 ms |
-
-##### 10 files modified #####
-
-| | cache miss | cache hit |
-|-------------------------|------------|-----------|
-| 10 file repository | 2.8 ms | 1.0 ms |
-| 100 file respository | 2.8 ms | 1.0 ms |
-| 1,000 file respository | 4.4 ms | 1.0 ms |
-| 10,000 file respository | 20.6 ms | 1.0 ms |
-| 100,000 file repository | 176.6 ms | 1.0 ms |
-
-### Using git-status-cache-posh-client to back posh-git ###
-
-The measurements below capture all the steps from the git-status-cache-posh-client section as well as the cost for posh-git to render the prompt. This extra step has a fixed cost of around 7-10 ms.
-
-Costs were gathered using timestamps from posh-git's debug output. Timings for posh-git without git-status-cache and git-status-cache-posh-client are included for in the "posh-git without cache" column for reference.
-
-##### No files modified #####
-
-| | cache miss | cache hit | posh-git without cache |
-|-------------------------|------------|-----------|------------------------|
-| 10 file repository | 11.8 ms | 8.6 ms | 57.0 ms |
-| 100 file respository | 11.8 ms | 8.6 ms | 62.2 ms |
-| 1,000 file respository | 14.2 ms | 8.6 ms | 68.2 ms |
-| 10,000 file respository | 30.8 ms | 8.0 ms | 133.8 ms |
-| 100,000 file repository | 181.6 ms | 9.6 ms | 754.4 ms |
-
-##### 10 files modified #####
-
-| | cache miss | cache hit | posh-git without cache |
-|-------------------------|------------|-----------|------------------------|
-| 10 file repository | 12.2 ms | 9.4 ms | 63.2 ms |
-| 100 file respository | 12.2 ms | 9.4 ms | 65.0 ms |
-| 1,000 file respository | 14.4 ms | 9.4 ms | 72.8 ms |
-| 10,000 file respository | 31.0 ms | 9.4 ms | 134.0 ms |
-| 100,000 file repository | 179.6 ms | 9.0 ms | 763.6 ms |
-
-## Build ##
-
-Build through Visual Studio using the [solution](ide/GitStatusCache.sln) after configuring required dependencies.
-
-### Build dependencies ###
-
-#### CMake ####
-
-Project includes libgit2 as a submodule. Initial build of libgit2 requires [CMake](http://www.cmake.org/ "CMake").
-
-#### Boost ####
-
-Visual Studio project requires BOOST_ROOT variable be set to the location of Boost's root directory. Boost can be built using the *Simplified Build From Source* instructions on Boost's [getting started page](http://www.boost.org/doc/libs/1_58_0/more/getting_started/windows.html "getting started page"):
-
-> If you wish to build from source with Visual C++, you can use a simple build procedure described in this section. Open the command prompt and change your current directory to the Boost root directory. Then, type the following commands:
->
- bootstrap
- .\b2 runtime-link=static
-
-#### libgit2 ####
-
-libgit2 is included as a submodule. To pull locally:
-
- git submodule update --init --recursive
-
-CMake is required to build. See libgit2 [build instructions](https://libgit2.github.com/docs/guides/build-and-link/ "build instructions") for details. Use the following options to generate Visual Studio project and perform initial build:
-
- cd .\ext\libgit2
- mkdir build
- cd build
- cmake .. -DBUILD_SHARED_LIBS=OFF -DSTATIC_CRT=ON -DTHREADSAFE=ON -DBUILD_CLAR=OFF
- cmake --build . --config Debug
- cmake --build . --config Release
-
-#### rapidjson ####
-
-[rapidjson](https://github.com/miloyip/rapidjson/ "rapidjson") headers are included as a submodule. To pull locally:
-
- git submodule update --init --recursive
-
+# git-status-cache #
+
+High performance cache for git repository status. Clients can retrieve information via named pipe.
+
+Useful for scenarios that frequently access status information (ex. shell prompts like [posh-git](https://github.com/cmarcusreid/posh-git/tree/useGitStatusCache)) that don't want to pay the cost of a "git status" (significantly more expensive with large repositories) when nothing has changed.
+
+## Clients ##
+
+- PowerShell: [git-status-cache-posh-client](https://github.com/cmarcusreid/git-status-cache-posh-client)
+
+## Communicating with the cache ##
+
+Clients connect to the "GitStatusCache" named pipe hosted by GitStatusCache.exe. All messages sent over the pipe must be UTF-8 encoded JSON.
+
+All requests must specify "Version" and "Action". The only currently available version is 1. Should the protocol change in the future the version number will be incremented to avoid breaking existing clients. The following operations may be specified in "Action".
+
+### GetStatus ###
+
+Retrieves current status information for the requested "Path".
+
+##### Sample request #####
+
+ {
+ "Path": "D:\\git-status-cache-posh-client",
+ "Version": 1,
+ "Action": "GetStatus"
+ }
+
+##### Sample response #####
+
+ {
+ "Version": 1,
+ "Path": "D:\\git-status-cache-posh-client",
+ "RepoPath": "D:/git-status-cache-posh-client/.git/",
+ "WorkingDir": "D:/git-status-cache-posh-client/",
+ "State" : "",
+ "Branch" : "master",
+ "Upstream": "origin/master",
+ "UpstreamGone": false,
+ "AheadBy": 0,
+ "BehindBy": 0,
+ "IndexAdded": [],
+ "IndexModified": [],
+ "IndexDeleted": [],
+ "IndexTypeChange": [],
+ "IndexRenamed": [],
+ "WorkingAdded": [],
+ "WorkingModified": ["GitStatusCachePoshClient.ps1", "GitStatusCachePoshClient.psm1"],
+ "WorkingDeleted": [],
+ "WorkingTypeChange": [],
+ "WorkingRenamed": [],
+ "WorkingUnreadable": [],
+ "Ignored": [],
+ "Conflicted": []
+ "Stashes" : [{
+ "Name" : "stash@{0}",
+ "Sha1Id" : "e24d59d0d03a3f680def647a7bb62f027d8671c",
+ "Message" : "On master: Second stash!"
+ }, {
+ "Name" : "stash@{1}",
+ "Sha1Id" : "0cbabd043bae55a76c3c041e6db2b129a0a4872",
+ "Message" : "On master: My stash."
+ }
+ ]
+ }
+
+### GetCacheStatistics ###
+
+Reports information about the cache's performance.
+
+##### Sample request #####
+
+ {
+ "Version": 1,
+ "Action": "GetCacheStatistics"
+ }
+
+##### Sample response #####
+
+ {
+ "Version": 1,
+ "Uptime": "01:47:20",
+ "TotalGetStatusRequests": 541,
+ "AverageMillisecondsInGetStatus": 12.452925,
+ "MinimumMillisecondsInGetStatus": 0.098923,
+ "MaximumMillisecondsInGetStatus": 213.08858,
+ "CacheHits": 383,
+ "CacheMisses": 156,
+ "EffectiveCachePrimes": 26,
+ "TotalCachePrimes": 58,
+ "EffectiveCacheInvalidations": 175,
+ "TotalCacheInvalidations": 662,
+ "FullCacheInvalidations": 0
+ }
+
+### Shutdown ###
+
+Instructs the cache process to terminate itself.
+
+##### Sample request #####
+
+ {
+ "Version": 1,
+ "Action": "Shutdown"
+ }
+
+##### Sample response #####
+
+ {
+ "Version": 1,
+ "Result": "Shutting down."
+ }
+
+### Reporting errors ###
+
+Any errors with the request will be reported back with a "Version" and a human-readable "Error" message. For example:
+
+ {
+ "Version": 1,
+ "Error": "Requested 'Path' is not part of a git repository."
+ }
+
+## Performance ##
+
+Cost for serving a cache hit in the cache process is generally between 0.1-0.3 ms, but this metric doesn't include the overhead involved in a full request.
+
+The following measurements were taken on git repositories containing the specified file count. Each file was a text file containing a single sentence of text. Each case was run 5 times and the numbers reported below are averages. Each individual measurement was taken with a high resolution timer at 1 ms precision.
+
+### Request from git-status-cache-posh-client ###
+
+The measurements below capture:
+* Serializing a request to JSON in PowerShell.
+* Sending the JSON request over the named pipe.
+* Compute the current git status (cache miss) or retrieving it from the cache (cache hit) int the cache process.
+* Sending the JSON response over the named pipe back to the PowerShell client.
+* Deserializing the JSON response into a PSCustomObject
+
+##### No files modified #####
+
+| | cache miss | cache hit |
+|-------------------------|------------|-----------|
+| 10 file repository | 3.0 ms | 1.0 ms |
+| 100 file respository | 3.0 ms | 1.0 ms |
+| 1,000 file respository | 5.2 ms | 1.0 ms |
+| 10,000 file respository | 22.4 ms | 1.0 ms |
+| 100,000 file repository | 176.6 ms | 1.0 ms |
+
+##### 10 files modified #####
+
+| | cache miss | cache hit |
+|-------------------------|------------|-----------|
+| 10 file repository | 2.8 ms | 1.0 ms |
+| 100 file respository | 2.8 ms | 1.0 ms |
+| 1,000 file respository | 4.4 ms | 1.0 ms |
+| 10,000 file respository | 20.6 ms | 1.0 ms |
+| 100,000 file repository | 176.6 ms | 1.0 ms |
+
+### Using git-status-cache-posh-client to back posh-git ###
+
+The measurements below capture all the steps from the git-status-cache-posh-client section as well as the cost for posh-git to render the prompt. This extra step has a fixed cost of around 7-10 ms.
+
+Costs were gathered using timestamps from posh-git's debug output. Timings for posh-git without git-status-cache and git-status-cache-posh-client are included for in the "posh-git without cache" column for reference.
+
+##### No files modified #####
+
+| | cache miss | cache hit | posh-git without cache |
+|-------------------------|------------|-----------|------------------------|
+| 10 file repository | 11.8 ms | 8.6 ms | 57.0 ms |
+| 100 file respository | 11.8 ms | 8.6 ms | 62.2 ms |
+| 1,000 file respository | 14.2 ms | 8.6 ms | 68.2 ms |
+| 10,000 file respository | 30.8 ms | 8.0 ms | 133.8 ms |
+| 100,000 file repository | 181.6 ms | 9.6 ms | 754.4 ms |
+
+##### 10 files modified #####
+
+| | cache miss | cache hit | posh-git without cache |
+|-------------------------|------------|-----------|------------------------|
+| 10 file repository | 12.2 ms | 9.4 ms | 63.2 ms |
+| 100 file respository | 12.2 ms | 9.4 ms | 65.0 ms |
+| 1,000 file respository | 14.4 ms | 9.4 ms | 72.8 ms |
+| 10,000 file respository | 31.0 ms | 9.4 ms | 134.0 ms |
+| 100,000 file repository | 179.6 ms | 9.0 ms | 763.6 ms |
+
+## Build ##
+
+Need Visual Studio 2022 or higher version.
+
+Need to bootstrap vcpkg before build anything.
+
+```bash
+cd vcpkg
+./bootstrap-vcpkg.bat
+cd ..
+```
+
+Then you can build with either Visual Studio 2022 DevEnv or just MSBuild.
+
+```bash
+start ide/GitStatusCache.sln
+```
+
+Or
+
+```bash
+msbuild /p:Configuration=Debug /p:Platform=x64
+# or for release profile
+msbuild /p:Configuration=Release /p:Platform=x64
+```
+
+You can found the artifact in `src/GitStatusCache/ide/x64/(Debug|Release)/GitStatusCache.exe`.
+
+Verify the dependencies are linked statically:
+
+```bash
+dumpbin /dependents .\src\GitStatusCache\ide\x64\Debug\GitStatusCache.exe
+```
+
+It would produce as following:
+
+```
+Image has the following dependencies:
+
+ KERNEL32.dll
+ USER32.dll
+ SHELL32.dll
+ SHLWAPI.dll
+ WS2_32.dll
+ CRYPT32.dll
+ RPCRT4.dll
+ WINHTTP.dll
+ ADVAPI32.dll
+ ole32.dll
+```
diff --git a/dirs.proj b/dirs.proj
new file mode 100644
index 0000000..a9b6612
--- /dev/null
+++ b/dirs.proj
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/ext/ReadDirectoryChanges/ide/ReadDirectoryChanges.vcxproj b/ext/ReadDirectoryChanges/ide/ReadDirectoryChanges.vcxproj
index a8c4fe1..3b02518 100644
--- a/ext/ReadDirectoryChanges/ide/ReadDirectoryChanges.vcxproj
+++ b/ext/ReadDirectoryChanges/ide/ReadDirectoryChanges.vcxproj
@@ -1,111 +1,109 @@
-
-
-
-
- Debug
- Win32
-
-
- Release
- Win32
-
-
-
- {72A7916C-36BC-49D6-A9A9-B9FF8347BCE6}
- Win32Proj
- ReadDirectoryChanges
-
-
-
- Application
- true
- Unicode
- Dynamic
- Static
- v120
-
-
- Application
- false
- true
- Unicode
- Dynamic
- Static
- v120
-
-
-
-
-
-
-
-
-
-
-
-
- true
- $(ProjectDir)\..\bin\$(ProjectName)\$(Configuration)\
- $(ProjectDir)\..\build\$(ProjectName)\$(Configuration)\
-
-
- false
- $(ProjectDir)\..\bin\$(ProjectName)\$(Configuration)\
- $(ProjectDir)\..\build\$(ProjectName)\$(Configuration)\
-
-
-
- Use
- Level3
- Disabled
- WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
- $(BOOST_ROOT);$(ProjectDir)\..\inc;%(AdditionalIncludeDirectories)
-
-
- Console
- true
- $(BOOST_ROOT)\stage\lib
-
-
-
-
- Level3
- Use
- MaxSpeed
- true
- true
- WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
- false
- $(BOOST_ROOT);$(ProjectDir)\..\inc;%(AdditionalIncludeDirectories)
-
-
- Console
- true
- true
- true
- $(BOOST_ROOT)\stage\lib
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Create
- Create
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+ Debug
+ Win32
+
+
+ Release
+ Win32
+
+
+
+ {72A7916C-36BC-49D6-A9A9-B9FF8347BCE6}
+ Win32Proj
+ ReadDirectoryChanges
+
+
+
+ Application
+ true
+ Unicode
+ Dynamic
+ Static
+ v120
+
+
+ Application
+ false
+ true
+ Unicode
+ Dynamic
+ Static
+ v120
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ $(ProjectDir)\..\bin\$(ProjectName)\$(Configuration)\
+ $(ProjectDir)\..\build\$(ProjectName)\$(Configuration)\
+
+
+ false
+ $(ProjectDir)\..\bin\$(ProjectName)\$(Configuration)\
+ $(ProjectDir)\..\build\$(ProjectName)\$(Configuration)\
+
+
+
+ Use
+ Level3
+ Disabled
+ WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ $(ProjectDir)\..\inc;%(AdditionalIncludeDirectories)
+
+
+ Console
+ true
+
+
+
+
+ Level3
+ Use
+ MaxSpeed
+ true
+ true
+ WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ false
+ $(ProjectDir)\..\inc;%(AdditionalIncludeDirectories)
+
+
+ Console
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Create
+ Create
+
+
+
+
+
+
diff --git a/ext/ReadDirectoryChanges/ide/ReadDirectoryChangesLib.vcxproj b/ext/ReadDirectoryChanges/ide/ReadDirectoryChangesLib.vcxproj
index 0a08702..0e4a1a2 100644
--- a/ext/ReadDirectoryChanges/ide/ReadDirectoryChangesLib.vcxproj
+++ b/ext/ReadDirectoryChanges/ide/ReadDirectoryChangesLib.vcxproj
@@ -1,179 +1,177 @@
-
-
-
-
- Debug
- Win32
-
-
- Debug
- x64
-
-
- Release
- Win32
-
-
- Release
- x64
-
-
-
- {A14F8B89-3DBC-4DA9-A7D7-95070AB4DCF6}
- Win32Proj
- ReadDirectoryChanges
-
-
-
- StaticLibrary
- true
- Unicode
- Dynamic
- Static
- v142
-
-
- StaticLibrary
- true
- Unicode
- Dynamic
- Static
- v142
-
-
- StaticLibrary
- false
- true
- Unicode
- Dynamic
- Static
- v142
-
-
- StaticLibrary
- false
- true
- Unicode
- Dynamic
- Static
- v142
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
- $(ProjectDir)\..\bin\$(ProjectName)\$(Configuration)\
- $(ProjectDir)\..\build\$(ProjectName)\$(Configuration)\
-
-
- true
-
-
- false
- $(ProjectDir)\..\bin\$(ProjectName)\$(Configuration)\
- $(ProjectDir)\..\build\$(ProjectName)\$(Configuration)\
-
-
- false
-
-
-
- Use
- Level3
- Disabled
- WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
- $(BOOST_ROOT);$(ProjectDir)\..\inc;%(AdditionalIncludeDirectories)
- MultiThreadedDebug
-
-
- Console
- true
-
-
-
-
- Use
- Level3
- Disabled
- WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
- $(BOOST_ROOT);$(ProjectDir)\..\inc;%(AdditionalIncludeDirectories)
- MultiThreadedDebug
-
-
- Console
- true
-
-
-
-
- Level3
- Use
- MaxSpeed
- true
- true
- WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
- false
- $(BOOST_ROOT);$(ProjectDir)\..\inc;%(AdditionalIncludeDirectories)
- MultiThreaded
-
-
- Console
- true
- true
- true
-
-
-
-
- Level3
- Use
- MaxSpeed
- true
- true
- WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
- false
- $(BOOST_ROOT);$(ProjectDir)\..\inc;%(AdditionalIncludeDirectories)
- MultiThreaded
-
-
- Console
- true
- true
- true
-
-
-
-
-
-
-
-
-
-
-
-
-
- Create
- Create
- Create
- Create
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+ Debug
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ Win32
+
+
+ Release
+ x64
+
+
+
+ {A14F8B89-3DBC-4DA9-A7D7-95070AB4DCF6}
+ Win32Proj
+ ReadDirectoryChanges
+
+
+
+ StaticLibrary
+ true
+ Unicode
+ Dynamic
+ Static
+ v143
+
+
+ StaticLibrary
+ true
+ Unicode
+ Dynamic
+ Static
+ v143
+
+
+ StaticLibrary
+ false
+ true
+ Unicode
+ Dynamic
+ Static
+ v143
+
+
+ StaticLibrary
+ false
+ true
+ Unicode
+ Dynamic
+ Static
+ v143
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ $(ProjectDir)\..\bin\$(ProjectName)\$(Configuration)\
+ $(ProjectDir)\..\build\$(ProjectName)\$(Configuration)\
+
+
+ true
+
+
+ false
+ $(ProjectDir)\..\bin\$(ProjectName)\$(Configuration)\
+ $(ProjectDir)\..\build\$(ProjectName)\$(Configuration)\
+
+
+ false
+
+
+
+ Use
+ Level3
+ Disabled
+ WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ $(ProjectDir)\..\inc;%(AdditionalIncludeDirectories)
+ MultiThreadedDebug
+
+
+ Console
+ true
+
+
+
+
+ Use
+ Level3
+ Disabled
+ WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ $(ProjectDir)\..\inc;%(AdditionalIncludeDirectories)
+ MultiThreadedDebug
+
+
+ Console
+ true
+
+
+
+
+ Level3
+ Use
+ MaxSpeed
+ true
+ true
+ WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ false
+ $(ProjectDir)\..\inc;%(AdditionalIncludeDirectories)
+ MultiThreaded
+
+
+ Console
+ true
+ true
+ true
+
+
+
+
+ Level3
+ Use
+ MaxSpeed
+ true
+ true
+ WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ false
+ $(ProjectDir)\..\inc;%(AdditionalIncludeDirectories)
+ MultiThreaded
+
+
+ Console
+ true
+ true
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Create
+ Create
+ Create
+ Create
+
+
+
+
+
diff --git a/ext/ScopedResource/inc/scope_guard.h b/ext/ScopedResource/inc/scope_guard.h
index 38187f0..d09289a 100644
--- a/ext/ScopedResource/inc/scope_guard.h
+++ b/ext/ScopedResource/inc/scope_guard.h
@@ -1,59 +1,59 @@
-#ifndef SCOPE_GUARD_H_
-#define SCOPE_GUARD_H_
-
-// modeled slightly after Andrescu’s talk and article(s)
-namespace std{ namespace experimental{
-
-template
-struct scope_guard_t {
- // construction
- explicit scope_guard_t(D &&f) noexcept
- : deleter(std::move(f))
- , execute_on_destruction{ true }
- { }
-
- // move
- scope_guard_t(scope_guard_t &&rhs) noexcept
- : deleter(std::move(rhs.deleter))
- , execute_on_destruction{ rhs.execute_on_destruction }
- {
- rhs.release();
- }
-
- // release
- ~scope_guard_t()
- {
- if (execute_on_destruction)
- {
- try
- {
- deleter();
- }
- catch (...)
- {
- }
- }
- }
-
- void release() noexcept
- {
- execute_on_destruction = false;
- }
-
-private:
- scope_guard_t(scope_guard_t const &) = delete;
- void operator=(scope_guard_t const &) = delete;
- scope_guard_t& operator=(scope_guard_t &&) = delete;
- D deleter;
- bool execute_on_destruction; // exposition only
-};
-
-// usage: auto guard=scope guard([] std::cout ¡¡ ”done...”;);
-template
-scope_guard_t scope_guard(D && deleter) noexcept
-{
- return scope_guard_t(std::move(deleter)); // fails with curlies
-}
-
-}}
-#endif /* SCOPE GUARD H */
\ No newline at end of file
+#ifndef SCOPE_GUARD_H_
+#define SCOPE_GUARD_H_
+
+// modeled slightly after Andrew L. Sandoval's talk and article(s)
+namespace std{ namespace experimental{
+
+template
+struct scope_guard_t {
+ // construction
+ explicit scope_guard_t(D &&f) noexcept
+ : deleter(std::move(f))
+ , execute_on_destruction{ true }
+ { }
+
+ // move
+ scope_guard_t(scope_guard_t &&rhs) noexcept
+ : deleter(std::move(rhs.deleter))
+ , execute_on_destruction{ rhs.execute_on_destruction }
+ {
+ rhs.release();
+ }
+
+ // release
+ ~scope_guard_t()
+ {
+ if (execute_on_destruction)
+ {
+ try
+ {
+ deleter();
+ }
+ catch (...)
+ {
+ }
+ }
+ }
+
+ void release() noexcept
+ {
+ execute_on_destruction = false;
+ }
+
+private:
+ scope_guard_t(scope_guard_t const &) = delete;
+ void operator=(scope_guard_t const &) = delete;
+ scope_guard_t& operator=(scope_guard_t &&) = delete;
+ D deleter;
+ bool execute_on_destruction; // exposition only
+};
+
+// usage: auto guard=scope guard([] std::cout << "done...";);
+template
+scope_guard_t scope_guard(D && deleter) noexcept
+{
+ return scope_guard_t(std::move(deleter)); // fails with curlies
+}
+
+}}
+#endif /* SCOPE GUARD H */
diff --git a/ext/libgit2 b/ext/libgit2
deleted file mode 160000
index 7d3c705..0000000
--- a/ext/libgit2
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 7d3c7057f0e774aecd6fc4ef8333e69e5c4873e0
diff --git a/ext/rapidjson b/ext/rapidjson
deleted file mode 160000
index bc4551b..0000000
--- a/ext/rapidjson
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit bc4551b5b065c51ab0cf494c9cf28eb9baf81686
diff --git a/global.json b/global.json
new file mode 100644
index 0000000..e282046
--- /dev/null
+++ b/global.json
@@ -0,0 +1,12 @@
+{
+ "sdk": {
+ "version": "6.0.400",
+ "rollForward": "latestMinor"
+ },
+ "msbuild-sdks": {
+ "Microsoft.Build.Artifacts": "4.0.4",
+ "Microsoft.Build.Traversal": "3.1.6",
+ "Microsoft.Build.CentralPackageVersions": "2.1.3",
+ "DotNet.ReproducibleBuilds.Isolated": "1.1.1"
+ }
+}
diff --git a/packages.lock.json b/packages.lock.json
new file mode 100644
index 0000000..92fecee
--- /dev/null
+++ b/packages.lock.json
@@ -0,0 +1,21 @@
+{
+ "version": 1,
+ "dependencies": {
+ ".NETFramework,Version=v4.5": {
+ "Microsoft.NETFramework.ReferenceAssemblies": {
+ "type": "Direct",
+ "requested": "[1.0.2, )",
+ "resolved": "1.0.2",
+ "contentHash": "5/cSEVld+px/CuRrbohO/djfg6++eR6zGpy88MgqloXvkj//WXWpFZyu/OpkXPN0u5m+dN/EVwLNYFUxD4h2+A==",
+ "dependencies": {
+ "Microsoft.NETFramework.ReferenceAssemblies.net45": "1.0.2"
+ }
+ },
+ "Microsoft.NETFramework.ReferenceAssemblies.net45": {
+ "type": "Transitive",
+ "resolved": "1.0.2",
+ "contentHash": "Nm14pRmqB+4u2JEMdtngnbDcJidTmswMxOJ992TpTwiwcUTERxLlHwwSh0HiUoRjS0TO0sozsiB0h6FHjCUdEA=="
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/GitStatusCache/ide/GitStatusCache.vcxproj b/src/GitStatusCache/ide/GitStatusCache.vcxproj
index b2b37db..1a690f5 100644
--- a/src/GitStatusCache/ide/GitStatusCache.vcxproj
+++ b/src/GitStatusCache/ide/GitStatusCache.vcxproj
@@ -1,219 +1,215 @@
-
-
-
-
- Debug
- Win32
-
-
- Debug
- x64
-
-
- Release
- Win32
-
-
- Release
- x64
-
-
-
- {2BB7912E-5C54-4247-AFC7-EBD2026418E5}
- Win32Proj
- GitStatusCache
-
-
-
- Application
- true
- v142
- Unicode
-
-
- Application
- true
- v142
- Unicode
-
-
- Application
- false
- v142
- true
- Unicode
-
-
- Application
- false
- v142
- true
- Unicode
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
- $(ProjectDir)\..\bin\$(Configuration)\
- $(ProjectDir)\..\build\$(Configuration)\
-
-
- false
-
-
- false
- $(ProjectDir)\..\bin\$(Configuration)\
- $(ProjectDir)\..\build\$(Configuration)\
-
-
- false
-
-
-
- Use
- Level3
- Disabled
- WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
- true
- $(BOOST_ROOT);$(SolutionDir)\..\ext\libgit2\include;$(SolutionDir)\..\ext\rapidjson\include;$(SolutionDir)\..\ext\ReadDirectoryChanges\inc;$(SolutionDir)\..\ext\ScopedResource\inc;%(AdditionalIncludeDirectories)
- stdafx.h
- /Zm200 %(AdditionalOptions)
- MultiThreadedDebug
-
-
- Windows
- true
- $(BOOST_ROOT)\stage\lib;$(SolutionDir)\..\ext\libgit2\build\Debug
- git2.lib;crypt32.lib;rpcrt4.lib;winhttp.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
-
-
-
-
- Use
- Level3
- Disabled
- WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
- true
- $(BOOST_ROOT);$(SolutionDir)\..\ext\libgit2\include;$(SolutionDir)\..\ext\rapidjson\include;$(SolutionDir)\..\ext\ReadDirectoryChanges\inc;$(SolutionDir)\..\ext\ScopedResource\inc;%(AdditionalIncludeDirectories)
- stdafx.h
- /Zm200 %(AdditionalOptions)
- MultiThreadedDebug
-
-
- Windows
- true
- $(BOOST_ROOT)\stage\lib;$(SolutionDir)\..\ext\libgit2\build\Debug
- git2.lib;crypt32.lib;rpcrt4.lib;winhttp.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
-
-
-
-
- Level3
- Use
- MaxSpeed
- true
- true
- WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
- true
- $(BOOST_ROOT);$(SolutionDir)\..\ext\libgit2\include;$(SolutionDir)\..\ext\rapidjson\include;$(SolutionDir)\..\ext\ReadDirectoryChanges\inc;$(SolutionDir)\..\ext\ScopedResource\inc;%(AdditionalIncludeDirectories)
- /Zm200 %(AdditionalOptions)
- MultiThreaded
- false
-
-
- Windows
- true
- true
- true
- $(BOOST_ROOT)\stage\lib;$(SolutionDir)\..\ext\libgit2\build\Release
- git2.lib;crypt32.lib;rpcrt4.lib;winhttp.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
-
-
-
-
- Level3
- Use
- MaxSpeed
- true
- true
- WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
- true
- $(BOOST_ROOT);$(SolutionDir)\..\ext\libgit2\include;$(SolutionDir)\..\ext\rapidjson\include;$(SolutionDir)\..\ext\ReadDirectoryChanges\inc;$(SolutionDir)\..\ext\ScopedResource\inc;%(AdditionalIncludeDirectories)
- /Zm200 %(AdditionalOptions)
- MultiThreaded
- false
-
-
- Windows
- true
- true
- true
- $(BOOST_ROOT)\stage\lib;$(SolutionDir)\..\ext\libgit2\build\Release
- git2.lib;crypt32.lib;rpcrt4.lib;winhttp.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Create
- Create
- Create
- Create
-
-
-
-
- {a14f8b89-3dbc-4da9-a7d7-95070ab4dcf6}
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+ Debug
+ Win32
+
+
+ Debug
+ x64
+
+
+ Release
+ Win32
+
+
+ Release
+ x64
+
+
+
+ {2BB7912E-5C54-4247-AFC7-EBD2026418E5}
+ Win32Proj
+ GitStatusCache
+
+
+
+ Application
+ true
+ v143
+ Unicode
+
+
+ Application
+ true
+ v143
+ Unicode
+
+
+ Application
+ false
+ v143
+ true
+ Unicode
+
+
+ Application
+ false
+ v143
+ true
+ Unicode
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+ $(ProjectDir)\..\bin\$(Configuration)\
+ $(ProjectDir)\..\build\$(Configuration)\
+
+
+ false
+
+
+ false
+ $(ProjectDir)\..\bin\$(Configuration)\
+ $(ProjectDir)\..\build\$(Configuration)\
+
+
+ false
+
+
+
+ Use
+ Level3
+ Disabled
+ WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
+ true
+ $(EnlistmentRoot)\ext\ReadDirectoryChanges\inc;$(EnlistmentRoot)\ext\ScopedResource\inc;%(AdditionalIncludeDirectories)
+ stdafx.h
+ /Zm200 %(AdditionalOptions)
+ MultiThreadedDebug
+
+
+ Windows
+ true
+ crypt32.lib;rpcrt4.lib;winhttp.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
+
+
+
+
+ Use
+ Level3
+ Disabled
+ WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
+ true
+ $(EnlistmentRoot)\ext\ReadDirectoryChanges\inc;$(EnlistmentRoot)\ext\ScopedResource\inc;%(AdditionalIncludeDirectories)
+ stdafx.h
+ /Zm200 %(AdditionalOptions)
+ MultiThreadedDebug
+
+
+ Windows
+ true
+ crypt32.lib;rpcrt4.lib;winhttp.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
+
+
+
+
+ Level3
+ Use
+ MaxSpeed
+ true
+ true
+ WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
+ true
+ $(EnlistmentRoot)\ext\ReadDirectoryChanges\inc;$(EnlistmentRoot)\ext\ScopedResource\inc;%(AdditionalIncludeDirectories)
+ /Zm200 %(AdditionalOptions)
+ MultiThreaded
+ false
+
+
+ Windows
+ true
+ true
+ true
+ crypt32.lib;rpcrt4.lib;winhttp.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
+
+
+
+
+ Level3
+ Use
+ MaxSpeed
+ true
+ true
+ WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
+ true
+ $(EnlistmentRoot)\ext\ReadDirectoryChanges\inc;$(EnlistmentRoot)\ext\ScopedResource\inc;%(AdditionalIncludeDirectories)
+ /Zm200 %(AdditionalOptions)
+ MultiThreaded
+ false
+
+
+ Windows
+ true
+ true
+ true
+ crypt32.lib;rpcrt4.lib;winhttp.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Create
+ Create
+ Create
+ Create
+
+
+
+
+ {a14f8b89-3dbc-4da9-a7d7-95070ab4dcf6}
+
+
+
+
+
+
diff --git a/src/GitStatusCache/src/targetver.h b/src/GitStatusCache/src/targetver.h
index 90e767b..d2131a1 100644
--- a/src/GitStatusCache/src/targetver.h
+++ b/src/GitStatusCache/src/targetver.h
@@ -1,8 +1,10 @@
-#pragma once
-
-// Including SDKDDKVer.h defines the highest available Windows platform.
-
-// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
-// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
-
-#include
+#pragma once
+
+// Including SDKDDKVer.h defines the highest available Windows platform.
+
+// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
+// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
+
+// Workaround, see https://github.com/microsoft/vcpkg/discussions/22762
+#define _WIN32_WINNT 0x0600
+#include
diff --git a/vcpkg b/vcpkg
new file mode 160000
index 0000000..acc3bcf
--- /dev/null
+++ b/vcpkg
@@ -0,0 +1 @@
+Subproject commit acc3bcf76b84ae5041c86ab55fe138ae7b8255c7
diff --git a/vcpkg.json b/vcpkg.json
new file mode 100644
index 0000000..93010e6
--- /dev/null
+++ b/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
+ "name": "git-status-cache",
+ "version-semver": "1.2.0-dev",
+ "dependencies": [
+ "boost-algorithm",
+ "boost-asio",
+ "boost-core",
+ "boost-filesystem",
+ "boost-locale",
+ "boost-log",
+ "boost-program-options",
+ "boost-thread",
+ "boost-timer",
+ "libgit2",
+ "rapidjson"
+ ]
+}