A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://lists.gnu.org/archive/html/emacs-devel/2022-11/msg01066.html below:

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] 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.



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4