Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ianhattendorf
Copy link
Member

See libgit2/libgit2#5347.

Option constants will be available once the PR is merged upstream. They are:

NodeGit.Libgit2.OPT.SET_WINDOWS_LONGPATHS === 28
NodeGit.Libgit2.OPT.GET_WINDOWS_LONGPATHS === 29

Can be called as:

// set longpaths on
NodeGit.Libgit2.opts(28, 1)
// check longpaths
const longpathsEnabled = NodeGit.Libgit2.opts(29)

Copy link
Member

@implausible implausible left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if you made the following change, it would make this PR ideal.

Don't return error value, instead throw on error
Copy link
Member

@implausible implausible left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

@gpetrov
Copy link

gpetrov commented May 23, 2022

@ianhattendorf seems those options have disappeared in the latest Nodegit.

They were removed with a2897b9

Could you add them back or are they no longer required?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants