Skip to content

Remove deprecated API shims - #657

Merged
hannesa2 merged 1 commit into
masterfrom
RemoveDeprecatedAPIshims
Sep 16, 2026
Merged

hannesa2 merged 1 commit into
masterfrom
RemoveDeprecatedAPIshims

Conversation

@hannesa2

@hannesa2 hannesa2 commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

refs #652

@hannesa2

Copy link
Copy Markdown
Contributor Author

Screenshot differs: emulatorApi=arm64 with 4 screenshot(s)

setpoint (old) | diff | actual screenshot (new)

00-commit-context-menu.pngscreenshot

01-history-view.pngscreenshot

02-main-window.pngscreenshot

03-staging-view.pngscreenshot

@hannesa2
hannesa2 requested review from goneng and a lite review from Copilot September 15, 2026 20:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

One or more issues must be addressed before approval.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This PR updates the ObjectiveGit submodule to migrate libgit2 calls away from deprecated API names.

Changes:

  • Updates the ObjectiveGit submodule revision.
  • Migrates buffer, credential, reference, remote, index, and OID APIs.
  • Deprecated usages remain in ObjectiveGit, tests, and GitX call sites.
File summaries
File Description
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Unresolved deprecated API and buffer-ownership concerns remain.

Get a fresh assessment by requesting another Copilot review.

Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

goneng
goneng previously approved these changes Sep 15, 2026

@goneng goneng left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good: built it here and the suite is green (129 tests), and every substitution checks out as equivalent against the 1.9.4 headers, including the git_buf_grow(buf, 0) removal, which was already a no-op. It clears 13 of the 15 shim imports, so I will track the last two (GTFilter.m, NSData+Git.m) separately rather than hold this up.

@goneng

goneng commented Sep 15, 2026 •

Copy link
Copy Markdown
Collaborator

The bump itself looks good. Exactly one commit ahead (55c72059), no drive-by
commits, and gitx/objective-git#102 changes zero headers (14 .m files, no
.h), so GitX's compile surface is unchanged by construction.

Could you change close to refs? Same cross-reference, but #652 stays open
with the remainder attached to it. Happy to take that follow-up myself.

Also, correcting something I said over on #102:
I suggested merging that one first and then re-pointing this PR at the resulting master commit.
The re-point is not needed. objective-git merges with merge commits (#94, #95, #96, #101),
so 55c72059 stays reachable from master.

Order only matters in one direction:
please do not merge this one ahead of #102, or GitX master would briefly pin to
a commit that exists only on an open PR branch.

@hannesa2

Copy link
Copy Markdown
Contributor Author

Screenshot differs: emulatorApi=arm64 with 4 screenshot(s)

setpoint (old) | diff | actual screenshot (new)

00-commit-context-menu.pngscreenshot

01-history-view.pngscreenshot

02-main-window.pngscreenshot

03-staging-view.pngscreenshot

@hannesa2
hannesa2 merged commit cbd2243 into master Sep 16, 2026
3 checks passed
@hannesa2
hannesa2 deleted the RemoveDeprecatedAPIshims branch September 16, 2026 04:31
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