Skip to content

Add handling for new files that cannot be read using std::fs::read()#5

Merged
sile merged 1 commit intomainfrom
emacs-tempfile
Jan 21, 2025
Merged

Add handling for new files that cannot be read using std::fs::read()#5
sile merged 1 commit intomainfrom
emacs-tempfile

Conversation

@sile
Copy link
Copy Markdown
Owner

@sile sile commented Jan 21, 2025

Copilot Summary

This pull request includes a small but important change to the unstaged_and_staged_diffs function in the src/git.rs file. The change improves error handling when reading untracked files.

  • src/git.rs: Modified the unstaged_and_staged_diffs function to use ok() and is_some_and for error handling when reading untracked files, replacing the previous approach that used or_fail_with.

@sile sile merged commit ff54ef1 into main Jan 21, 2025
@sile sile deleted the emacs-tempfile branch January 21, 2025 10:27
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