LibGit2Sharp v0.25
LibGit2Sharp is now .NET Core 2.0+ and .NET Framework compatible.
Additions
GitObjectnow has aPeelmethod that will let you peel (for example)
aTagto aTree.MergeOptionsnow includes an option toIgnoreWhitespaceChanges.TreeDefinitioncan nowAddan object with only the ID, which allows
users of large files to add entries without realizing aBlob.ObjectDatabasecan nowWriteaStream, which allows users of
large files to stream an object into storage without loading it into
memory.ObjectDatabasecan nowMergeCommitsIntoIndexallowing users to perform
an in-memory merge that produces anIndexstructure with conflicts.- Users can enable or disable dependent object existence checks when
creating new objects withGlobalSettings.SetEnableStrictObjectCreation - Users can enable or disable
ofs_deltasupport with
GlobalSettings.SetEnableOfsDelta
Changes
- Status now does not show untracked files by default. To retrieve
untracked files, included theStatusOptions.IncludeUntrackedand/or
theStatusOptions.RecurseUntrackedDirsoptions. - Status now does not show the ignored files by default. To retrieve
ignored files, include theStatusOptions.IncludeIgnoredoption. Commands.Pullcan now provide anullvalue forPullOptions,
which indicates that default values should be used.
Fixes
- The exception thrown when the native library cannot be loaded is now
able to be caught and will no longer crash the process. - Getting the
Notescollection from aRepositoryno longer throws an
exception when the repository has no notes.