Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@altsem
Copy link
Owner

@altsem altsem commented Nov 9, 2025

No description provided.

@altsem altsem requested a review from Copilot November 9, 2025 14:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR migrates the Git status parsing implementation from the pest parser to nom, along with associated test and build configuration updates.

  • Replaces pest-based parser with nom combinators for parsing Git status output
  • Removes the external .pest grammar file in favor of in-code parser functions
  • Updates snapshot test to reflect "On branch main" instead of "No branch"

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/git/parse/status/mod.rs Complete rewrite using nom parser combinators, adds comprehensive test coverage for edge cases
src/git/parse/status/status.pest Removed pest grammar file as it's replaced by nom parser functions
Cargo.toml Removed pest and pest_derive dependencies
Cargo.lock Removed transitive dependencies of pest (sha2, digest, etc.)
flake.nix Simplified build configuration by removing custom pest file filtering
src/tests/snapshots/gitu__tests__fresh_init.snap Updated snapshot to reflect current behavior showing "On branch main"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@altsem altsem force-pushed the refactor/use-nom-for-status-parsing branch from c7d9e69 to 8995137 Compare November 9, 2025 14:01
@altsem altsem merged commit d15f1e5 into master Nov 9, 2025
2 of 3 checks passed
@altsem altsem deleted the refactor/use-nom-for-status-parsing branch November 9, 2025 14:05
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.

2 participants