Skip to content

Consider adding an error code to LibGit2Exception #137

Closed
@half-ogre

Description

@half-ogre

I was writing code to catch GIT_ENOTAREPO to check if the current directory was a GIt repo or not, and it seemed like it would be nice to add a nullable error code property to LibGit2Exception, and in Ensure.Success set the property to the error code that comes from the native call. I'm happy to send a pull request, but figure I should raise it for discussion first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions