Closed SuperSandro2000 closed 3 years ago
Hi @SuperSandro2000 ,
this is the first time I hear of git-worktree — is that feature of Git what it's about? At the moment, I consider this an enhancement rather than a bugfix and will research possible options with regard to this feature of Git.
Best, Sebastian
git-worktree allows you to create an extra directory on a different branch which shares the entire .git directory and by this speeds up "cloning" by a lot for big repositories. It is heavily used by nixpkgs-review and myself to work on multiple little projects within nixpkgs at the same time. It is part of the default git installation and requires no extra installation steps. You should already have it locally on your machine.
That matches what I skip-read and understood about it today so far. I just heard about it first today and you're the first asking, so that's why it's not supported in git-delete-merged-branches
, yet.
@SuperSandro2000 could you give pull request #44 a spin in your environment to see if the new support for linked working trees works as you would expect?
@SuperSandro2000 the faster you can give it a spin, the faster I can put it into a release, hint hint :smile:
@SuperSandro2000 release 6.4.0 with PR #44 included pushed to PyPI just now
There wasn't any need to rush the release. I am managing all my development tools with nix and including patches for packages is pretty damn easy.
There wasn't any need to rush the release. I am managing all my development tools with nix and including patches for packages is pretty damn easy.
There was no rush. PyPI releases are cheap and quick, and without a release the PR doesn't get to the users. Release early and often if you can. While adding patches to packages may be easy, a patch count of zero is ideal in packaging. I'd be very surprised, if NixOS was any different on that front.
I'd be very surprised, if NixOS was any different on that front.
I patched it out of tree in my dotfiles but getting it to everyone is also important.
When branches staged for deletion are checkout in worktrees the command fails and gdmb aborts.
Those branches should be skipped instead.