Conversation
…ectory to worktree path closes #106
Contributor
Code Metrics Report
Details | | main (703b66f) | #113 (c76ad07) | +/- |
|---------------------|----------------|----------------|-------|
- | Coverage | 38.6% | 38.4% | -0.2% |
| Files | 11 | 11 | 0 |
| Lines | 834 | 858 | +24 |
+ | Covered | 322 | 330 | +8 |
+ | Code to Test Ratio | 1:1.9 | 1:2.0 | +0.0 |
| Code | 1872 | 1917 | +45 |
+ | Test | 3696 | 3837 | +141 |
| Test Execution Time | 13s | 13s | 0s |Code coverage of files in pull request scope (20.9% → 21.7%)
Reported by octocov |
|
Thank you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature that allows the
git wtcommand to append the current subdirectory path to the worktree output path, similar togit diff --relative. This behavior can be enabled via thewt.relativeconfig or the--relativeflag, and includes robust handling and documentation. Comprehensive tests are also added to ensure correct functionality and fallback behavior.New feature: relative worktree path resolution
wt.relativeconfig option and--relativeflag to enable appending the current subdirectory path to the worktree output path; includes fallback to worktree root if the subdirectory does not exist in the target worktree. (cmd/root.go,internal/git/config.go,README.md) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]resolveRelativefunction to handle path resolution logic, using the newShowPrefixhelper to determine the subdirectory relative to the repo root. (cmd/root.go,internal/git/config.go) [1] [2]Shell completion
--relativeflag in shell completion options for improved usability. (e2e/config_test.go)closes #106