this post was submitted on 05 Apr 2024
127 points (96.4% liked)

Programming

17430 readers
82 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 13 points 7 months ago (18 children)

Why using a worktree? I will simply commit my WIP modifications on the dev branch.

Switch branch to work on the bugfix. And when Im finished I move back to the development branch? Why is this worse than doing this worktree stuff?

[–] [email protected] 1 points 7 months ago* (last edited 7 months ago) (2 children)

Because spending 1h+ recompiling everything whenever a colleagues points out a typo in a merge request is a waste of time

[–] [email protected] 1 points 7 months ago (1 children)

did I use worktree the wrong way? the subfolder with the repository where the worktree was placed, has to be recompiled anyway?

[–] [email protected] 1 points 7 months ago

If you have a build directory per worktree then no. Every branch is built independently

load more comments (15 replies)