emacs-devel
[Top][All Lists]
Advanced

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

Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installe


From: Jonas Bernoulli
Subject: Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS
Date: Wed, 16 Nov 2022 19:23:34 +0100

I cannot find it now, but somewhere in this thread you discussed
uninstalling a vc-installed package without risking to lose any
local changes.

In Borg I handle it like this:

Installing a package detaches the gitdir from the working tree.
(Borg uses submodules, but you don't need to do that to detach the
gitdir.)

Uninstalling the package only removes the working tree.  Keeping the
gitdir preserves all branches, stashes and dangling revs.  Uninstalling
is only allowed if there are no uncommitted changes.

The gitdir remains and if the user ever installs the same package again,
they are at that time asked whether to simply restore the working tree
or to start over and discard the existing gitdir.



reply via email to

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