Handle unsupported git commands - #23
Conversation
Allow passing unknown subcommands to git as a fallback.
There was a problem hiding this comment.
Pull Request Overview
This PR introduces version 0.9.0 of lgit with a major new "git command fallback" feature that allows users to run any git command through lgit, making it a drop-in replacement for git. The PR also includes extensive documentation improvements with a completely overhauled README.
Key changes:
- Added git command fallback functionality for unsupported commands
- Major README.md expansion with comprehensive documentation, examples, and troubleshooting
- Version bump from 0.8.1 to 0.9.0
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/main.rs | Imports new git_fallback module and adds External command handling |
| src/commands/git_fallback.rs | New module implementing git command passthrough functionality |
| src/commands.rs | Exports the new git_fallback module |
| src/cli.rs | Enables external subcommands and adds External variant to Commands enum |
| README.md | Complete overhaul with badges, TOC, detailed features, installation guide, examples, and FAQ |
| Cargo.toml | Version bump to 0.9.0 |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
update fallback error to be more specific
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 14 out of 15 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This pull request introduces a new version of
lgit(v0.9.0) with significant improvements focused on usability, documentation, and compatibility. The most important changes include adding a "git command fallback" feature that allows users to run any git command directly throughlgit, a major enhancement and expansion of theREADME.mdfor better onboarding and contribution, and internal code changes to support external git commands.Feature additions and compatibility:
lgit, either implicitly or explicitly using the--separator. This is supported by a newExternalcommand variant insrc/cli.rsand the newsrc/commands/git_fallback.rsimplementation. [1] [2] [3] [4] [5] [6]Documentation and onboarding improvements:
README.md: added badges, table of contents, detailed feature descriptions, installation instructions, quick start guides, command usage examples, configuration details, rationale for using lgit, and a comprehensive FAQ & troubleshooting section. [1] [2] [3]README.md: includes step-by-step instructions for development workflow, conventional commit usage, project structure overview, and issue reporting guidelines.Release and versioning:
Cargo.tomlfrom0.8.1to0.9.0to reflect the new features and improvements.