Skip to content

Conversation

savetheclocktower
Copy link

None of these are my commits, but we should land this work to master as part of the march toward PulsarNext.

Context-awareness is needed so that we can upgrade Electron. The updated-latest-electron branch of Pulsar has been pointing its git-utils dependency to this branch. We should land it, set up this repo to publish to NPM, then publish it as @pulsar-edit/git-utils version 6.0.0. (Current stable Pulsar depends on the current git-utils present in NPM, so we don’t need to publish the current version first.)

While I was migrating some of the other modules, I took the opportunity to migrate this module to N-API. I got the tests passing, so everything seems sound — but that’s as far as I took it. Since this branch is what PulsarNext has been using for months, I think we should start with this, and then we can consider the N-API migration at some point in the future.

@confused-Techie
Copy link
Member

On this one considering it seems little of the changes are our own, and mostly changes in libgit2 and the fact these are working in Pulsar next, I'm tempted to provide an approval so we can move forward.

Although we now have tests in the main branch, is it possible or easy to bring the GitHub actions testing over here so we can just verify everything is happy there? Or if need be I can always get this local and test that way. Would just be nice for that peace of mind before approving

@savetheclocktower
Copy link
Author

Yep, merged master into this PR.

@mauricioszabo, what was the logic behind vendoring libgit2? I don't love submodules either, but was it giving you some specific hassle?

@confused-Techie
Copy link
Member

Seems unfortunate that the test script is no longer valid with the changes made to this repo. Lemme try just testing this locally and seeing what we need to do to change the test script to work here, and of course check that tests are running properly

@savetheclocktower
Copy link
Author

Was a quick fix. CI is passing now!

Copy link
Member

@confused-Techie confused-Techie left a comment

Choose a reason for hiding this comment

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

While not the original author or too familiar here, based on my reasons above I'm gonna give an approval here. Little of the changes seem to be ours, and our tests are passing just fine with minimal changes. Lets advance the march towards upgraded Electron!

@mauricioszabo
Copy link

@savetheclocktower submodules weren't working correctly with yarn install, only on some very specific cases that I really don't remember anymore...

@savetheclocktower savetheclocktower merged commit 6bf78c1 into master Sep 3, 2025
1 check passed
This was referenced Sep 3, 2025
Comment on lines 18 to 21
"url": "https://github.com/atom/git-utils.git"
"url": "https://github.com/git-utils/git-utils.git"
},
"bugs": {
"url": "https://github.com/atom/git-utils/issues"
"url": "https://github.com/git-utils/git-utils/issues"
Copy link
Member

@DeeDeeG DeeDeeG Sep 13, 2025

Choose a reason for hiding this comment

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

Not a huge deal, but I suppose this was a typo.

(Repo git-utils/git-utils should be --> pulsar-edit/git-utils?)

The former resulting in a 404 not found, and the latter being this repo (our fork of Atom's package, the repo the present PR and files exist at now) and thus accurate/apropos.

(Pardon the lateness of this comment, I was away for a bit.)

Copy link
Author

Choose a reason for hiding this comment

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

Yup, good catch. I'll fix it tomorrow.

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.

4 participants