-
Notifications
You must be signed in to change notification settings - Fork 22
[Worktree] Simplify optimization patch's path #852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
| logger.exception(f"Failed to remove worktree: {worktree_dir}") | ||
|
|
||
|
|
||
| @lru_cache(maxsize=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What benefit we were having with 1 object in cache?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before I used to store patch files inside a directory that has the name of the first commit sha of the repo (to know later what directory the patches are located for each project)
so caching here to prevent getting the first commit sha on every run
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Saga4
we don't need all of this now, since we are using the vscode workspace state
to store data for each workspace into the disk easily
PR Type
Enhancement
Description
Simplify patch storage path usage
Remove project-scoped patch directories
Drop cached project ID utilities
Minor typing and import cleanup
Diagram Walkthrough
File Walkthrough
git_worktree_utils.py
Simplify patch path logic and cleanupcodeflash/code_utils/git_worktree_utils.py
patches_dir