v0.25
版本发布时间: 2018-03-26 23:50:20
libgit2/libgit2sharp最新发布版本:0.29.0(2024-01-23 06:08:03)
LibGit2Sharp is now .NET Core 2.0+ and .NET Framework compatible.
Additions
-
GitObject
now has aPeel
method that will let you peel (for example) aTag
to aTree
. -
MergeOptions
now includes an option toIgnoreWhitespaceChanges
. -
TreeDefinition
can nowAdd
an object with only the ID, which allows users of large files to add entries without realizing aBlob
. -
ObjectDatabase
can nowWrite
aStream
, which allows users of large files to stream an object into storage without loading it into memory. -
ObjectDatabase
can nowMergeCommitsIntoIndex
allowing users to perform an in-memory merge that produces anIndex
structure with conflicts. - Users can enable or disable dependent object existence checks when
creating new objects with
GlobalSettings.SetEnableStrictObjectCreation
- Users can enable or disable
ofs_delta
support withGlobalSettings.SetEnableOfsDelta
Changes
- Status now does not show untracked files by default. To retrieve
untracked files, included the
StatusOptions.IncludeUntracked
and/or theStatusOptions.RecurseUntrackedDirs
options. - Status now does not show the ignored files by default. To retrieve
ignored files, include the
StatusOptions.IncludeIgnored
option. -
Commands.Pull
can now provide anull
value 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
Notes
collection from aRepository
no longer throws an exception when the repository has no notes.