[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [package-vc] Consider cleaning up files from install process
From: |
Joseph Turner |
Subject: |
Re: [package-vc] Consider cleaning up files from install process |
Date: |
Wed, 04 Oct 2023 01:22:05 -0700 |
> > In other words, the way package-vc-install currently works leaves me
> > vulnerable to this scenario:
> >
> > 1. I use package-vc-install to install one of my packages from its local
> > repository directory.
> > 2. I check out a feature branch of that package to work on a new feature,
> > saving some files but not loading any of the changed code.
> > 3. I restart Emacs (e.g. maybe I shut down the system and turned it back on
> > the next day).
> > 4. That work-in-progress feature branch of my package gets loaded into
> > Emacs automatically (which may be entirely broken, being a WIP).
> Not sure why you consider that a problem. That's the whole purpose of
> installing straight from the VCS rather than from a tarball.
> If you don't want your Emacs to use that work-in-progress feature
> branch, then work on it elsewhere than in the VCS clone that was created
> specifically to be used in-place.
> E.g. use `git worktree`.
> > Philip, would you be willing to consider switching to that model for
> > package-vc-install, or offering it as an option?
> The option already exists, it's called `git worktree` :-)
I had not considered `git worktree` as a solution. Very neat.
> Switching to "that model" wholesale would prevent the current use where
> you can edit the *live* files.
Thank you!
Joseph