emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [package-vc] Consider cleaning up files from install process


From: Stefan Monnier
Subject: Re: [package-vc] Consider cleaning up files from install process
Date: Wed, 20 Sep 2023 08:08:07 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

> 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` :-)

Switching to "that model" wholesale would prevent the current use where
you can edit the *live* files.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]