Updates
This commit is contained in:
parent
441177a263
commit
a08d09328f
2 changed files with 45 additions and 41 deletions
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
{ pkgs, lib, config, unixpkgs, ... }:
|
||||
let
|
||||
cfg = config.programs.git;
|
||||
in
|
||||
|
@ -19,10 +19,10 @@ in
|
|||
cd "${r.path}"
|
||||
if [ -d .jj ]
|
||||
then
|
||||
${lib.getExe pkgs.jujutsu} git fetch
|
||||
${lib.getExe pkgs.jujutsu} rebase -d main@origin
|
||||
${lib.getExe pkgs.jujutsu} branch set main -r @-
|
||||
${lib.getExe pkgs.jujutsu} git push
|
||||
${lib.getExe config.programs.jujutsu.package} git fetch
|
||||
${lib.getExe config.programs.jujutsu.package} rebase -d main@origin
|
||||
${lib.getExe config.programs.jujutsu.package} branch set main -r @-
|
||||
${lib.getExe config.programs.jujutsu.package} git push
|
||||
else
|
||||
${pkgs.git}/bin/git --no-optional-locks diff --quiet || echo "Repository is dirty!"
|
||||
${pkgs.git}/bin/git pull || true
|
||||
|
@ -81,6 +81,10 @@ in
|
|||
};
|
||||
jujutsu = {
|
||||
enable = true;
|
||||
package = (import unixpkgs {
|
||||
inherit (pkgs) system;
|
||||
}).jujutsu;
|
||||
# Current version doesn't have the "none" signing backend
|
||||
settings = {
|
||||
git = {
|
||||
auto-local-bookmark = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue