- Notifications
You must be signed in to change notification settings - Fork2.5k
PermalinkChoose a base ref {{ refName }}default Choose a head ref {{ refName }}default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also orlearn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also.Learn more about diff comparisons here.
base repository:libgit2/libgit2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
Uh oh!
There was an error while loading.Please reload this page.
base:main
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}defaultLoading
...
head repository:libgit2/libgit2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
Uh oh!
There was an error while loading.Please reload this page.
compare:ethomson/notification
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}defaultLoading
- 5commits
- 11files changed
- 1contributor
Commits on Mar 3, 2025
notifications: a notification system for callers
Users can now configure a "notification callback"; notifications areraised when a condition occurs in a git repository that an end-usershould know about, or that the calling application may wish to act on.Notifications provide structured data, that is provided based on thetype of notification (for example, file paths).In addition, an an informative message is provided when a notificationis raised; the structured data should be sufficient for callers to buildtheir own message, but the provided message should make thatunnecessary.Some examples of likely future use of notifications:* `core.safecrlf=warn` messages are warning-level notifications. This allows the calling application to receive these notifications and display them to the user (for example, sending them to the console).* When a file cannot be written during checkout, we should inform the calling application. By default, git continues to check out when one (or more) paths fail to be written, but conclude that the checkout failed overall. Given this somewhat odd behavior, callers may wish to short-circuit this when any path fails to be written.* Callers may want structured failure information for a `safe.directory` failure so that they can get the file path without having to try to "screen scrape" the git_error message.
ethomson committedMar 3, 2025 filter: produce warnings when
core.safecrlf=warn
Produce warning-level notifications when `core.safecrlf=warn`.
ethomson committedMar 3, 2025 filter: assert on invalid crlf state
Produce an assertion when internally invalid CRLF configuration stateexists.
ethomson committedMar 3, 2025 cli: add a notification handler
Provide a notification handler in the CLI so that (for example) warningsand non-fatal error information can be sent to stdout. The CLI ignores"fatal" level errors since they're superfluous; it will get the sameerror after the function returns.
ethomson committedMar 3, 2025
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:git diff main...ethomson/notification
Uh oh!
There was an error while loading.Please reload this page.