Skip to content

Use libgit2 OID hex size constant#3

Open
sedge-bot wants to merge 1 commit into
fielding:mainfrom
sedge-bot:sedge/libgit2-oid-hexsz
Open

Use libgit2 OID hex size constant#3
sedge-bot wants to merge 1 commit into
fielding:mainfrom
sedge-bot:sedge/libgit2-oid-hexsz

Conversation

@sedge-bot
Copy link
Copy Markdown
Contributor

Summary

  • replace the removed/unsupported libgit2 SHA1-specific OID hex-size constant with the generic GIT_OID_HEXSZ constant in log/show formatting
  • keeps the fixed-size oid buffers aligned with the libgit2 1.5 headers available in the Sedge runtime

Verification

  • CPATH=/opt/sedge/.local/libgit2-dev/usr/include LIBRARY_PATH=/opt/sedge/.local/libgit2/usr/lib/aarch64-linux-gnu:/opt/sedge/.local/libgit2/usr/lib zig build
  • CPATH=/opt/sedge/.local/libgit2-dev/usr/include LIBRARY_PATH=/opt/sedge/.local/libgit2/usr/lib/aarch64-linux-gnu:/opt/sedge/.local/libgit2/usr/lib zig build test
  • /lib/ld-linux-aarch64.so.1 --library-path /opt/sedge/.local/libgit2/usr/lib/aarch64-linux-gnu:/opt/sedge/.local/libgit2/usr/lib ./zig-out/bin/nit --help
  • git diff --check github/main..HEAD

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.

1 participant