-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
ignore .worktrees as a "special folder" #35835
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
ignore .worktrees as a "special folder" #35835
Conversation
following the approach from nixpkgs that ignore the .worktrees folder, we could also do the same, this would allow worktrees to be worked on in the same folder as the primary branch. ref: NixOS/nixpkgs@b6420c7
|
Is it |
|
@silverwind I added the s to make it plural, so it doesn't exactly follow their naming, but it follows the approach of having some folder in the repo root that contains all worktrees. |
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.
I don't know what a worktree is but fine in any case.
@silverwind I find them helpful as they lessen the copies of the .git directory I have when working on multiple branches simultaneously (basically having multiple folders share the same .git folder objects so they don't need to be duplicated. So say I could do a git fetch origin, and then each "copy" would then have access to all of the new objects so I could then git merge origin/main to keep things up to date). |
* giteaofficial/main: Remove padding override on `.ui .sha.label` (go-gitea#35864) fix(api/repo/contents): set the dates to now when not specified by the caller (go-gitea#35861) Remove `fix` Make targets (go-gitea#35868) Refactor ls-tree and git path related problems (go-gitea#35858) Fix pull description code label background (go-gitea#35865) Make ACME email optional (go-gitea#35849) Remove wrong code (go-gitea#35846) Fix Arch repo pacman.conf snippet (go-gitea#35825) Port away from `flake-utils` (go-gitea#35675) Update golangci-lint to v2.6.0 (go-gitea#35801) Add a doctor command to fix inconsistent run status (go-gitea#35840) Fix viewed files number is not right if not all files loaded (go-gitea#35821) Fix incorrect pull request counter (go-gitea#35819) Fix a number of `strictNullChecks`-related issues (go-gitea#35795) ignore .worktrees as a "special folder" (go-gitea#35835) upgrade go mail to 0.7.2 and fix the bug (go-gitea#35833)
following the approach from nixpkgs that ignore the .worktrees folder, we could also do the same, this would allow worktrees to be worked on in the same folder as the primary branch.
ref: NixOS/nixpkgs@b6420c7