Skip to content

libfetchers/git-utils: Add GitError class for deduplicating error…#15265

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
xokdvium:libgit2-error
Feb 17, 2026
Merged

libfetchers/git-utils: Add GitError class for deduplicating error…#15265
Ericson2314 merged 1 commit intoNixOS:masterfrom
xokdvium:libgit2-error

Conversation

@xokdvium
Copy link
Contributor

… message printing

Motivation

Consolidates all the error message formatting in one place. It was very weird and tiring to remember to call git_error_last() in all the places.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@xokdvium xokdvium requested a review from edolstra as a code owner February 16, 2026 23:08
@github-actions github-actions bot added the fetching Networking with the outside (non-Nix) world, input locking label Feb 16, 2026
Copy link
Member

@roberth roberth left a comment

Choose a reason for hiding this comment

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

I would suggest GitError but it doesn't matter for this private class.

…sage printing

Consolidates all the error message formatting in one place. It was very weird
and tiring to remember to call git_error_last() in all the places.
@xokdvium xokdvium changed the title libfetchers/git-utils: Add LibGit2Error class for deduplicating error… libfetchers/git-utils: Add GitError class for deduplicating error… Feb 17, 2026
@xokdvium
Copy link
Contributor Author

Changed to GitError. That is indeed more concise.

@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 17, 2026
Merged via the queue into NixOS:master with commit f940ab5 Feb 17, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fetching Networking with the outside (non-Nix) world, input locking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants