[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.
- Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS, (continued)
- Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS, Alfred M. Szmidt, 2022/11/02
- Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS, Eli Zaretskii, 2022/11/01
- Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS, Dmitry Gutov, 2022/11/02
- Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS, Stefan Monnier, 2022/11/02
- Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS, Eli Zaretskii, 2022/11/02
- Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS, Eli Zaretskii, 2022/11/02
- Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS, Philip Kaludercic, 2022/11/02
- Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS, Richard Stallman, 2022/11/02
- Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS, Stefan Monnier, 2022/11/03
- Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS, Richard Stallman, 2022/11/04
Re: feature/package+vc 04c4c578c7 3/4: Allow for packages to be installed directly from VCS,
Jonas Bernoulli <=