1
0

pkgs/git-pp: Git pull and push in one go

This commit is contained in:
clerie 2024-10-25 13:31:09 +02:00
parent f9ab9b4136
commit edc2461e5a
4 changed files with 16 additions and 0 deletions

View File

@ -124,6 +124,7 @@
chromium-incognito chromium-incognito
git-checkout-github-pr git-checkout-github-pr
git-diff-word git-diff-word
git-pp
iot-data iot-data
nix-remove-result-links nix-remove-result-links
nixfiles-auto-install nixfiles-auto-install

9
pkgs/git-pp/default.nix Normal file
View File

@ -0,0 +1,9 @@
{ pkgs, ... }:
pkgs.writeShellApplication {
name = "git-pp";
text = builtins.readFile ./git-pp.sh;
runtimeInputs = with pkgs; [
git
];
}

5
pkgs/git-pp/git-pp.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
git pull --rebase && git push

View File

@ -9,6 +9,7 @@ final: prev: {
chromium-incognito = final.callPackage ./chromium-incognito {}; chromium-incognito = final.callPackage ./chromium-incognito {};
git-checkout-github-pr = final.callPackage ./git-checkout-github-pr {}; git-checkout-github-pr = final.callPackage ./git-checkout-github-pr {};
git-diff-word = final.callPackage ./git-diff-word {}; git-diff-word = final.callPackage ./git-diff-word {};
git-pp = final.callPackage ./git-pp {};
iot-data = final.python3.pkgs.callPackage ./iot-data {}; iot-data = final.python3.pkgs.callPackage ./iot-data {};
nix-remove-result-links = final.callPackage ./nix-remove-result-links {}; nix-remove-result-links = final.callPackage ./nix-remove-result-links {};
nixfiles-auto-install = final.callPackage ./nixfiles/nixfiles-auto-install.nix {}; nixfiles-auto-install = final.callPackage ./nixfiles/nixfiles-auto-install.nix {};