Skip to content

Make Repository.Version advertise libgit2 features #676

Description

@nulltoken

libgit2 exposes a git_libgit2_features() function that provides the caller within libgit2 built-in capabilities.

The Repository.Version property currently returns something in the form of

Syntax: Major.Minor.Patch-LibGit2SharpHash-LibGit2Hash (ProcessorArchitecture)
Example: 0.14.1-2f4368b-11f8336 (amd64)

We could update the implementation to make it reflect the libgit2 features

Syntax: Major.Minor.Patch-LibGit2SharpHash-LibGit2Hash (ProcessorArchitecture - Capabilities)
Example: 0.14.1-2f4368b-11f8336 (amd64 - Threads, Https)

Beside providing helpful information for troubleshooting purpose, this would actually compel the code to invoke the native libgit2 binary and thus ensure that's it's correctly installed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions