From 15f2580cab5895fbd562540a5e54c0e63726b3d9 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Mon, 28 Oct 2024 23:53:44 -0500 Subject: [PATCH] add git-rebuild when you're running on a server and pushing changes, it's nice to have just one command that does that and nothing else. this is that command. --- builds/rebuild.nix | 1 + builds/rebuild/git-rebuild | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100755 builds/rebuild/git-rebuild diff --git a/builds/rebuild.nix b/builds/rebuild.nix index e03af19..97c2968 100644 --- a/builds/rebuild.nix +++ b/builds/rebuild.nix @@ -18,6 +18,7 @@ stdenv.mkDerivation rec { installPhase = '' mkdir -p $out/bin cp $src/rebuild $out/bin + cp $src/git-rebuild $out/bin wrapProgram $out/bin/rebuild --prefix PATH : ${lib.makeBinPath [ bash ]} ''; diff --git a/builds/rebuild/git-rebuild b/builds/rebuild/git-rebuild new file mode 100755 index 0000000..cb9da96 --- /dev/null +++ b/builds/rebuild/git-rebuild @@ -0,0 +1,10 @@ +#!/bin/sh + +# make sure we're in dot_testing +cd ~/dot_testing + +git pull +git stash +git rebase + +rebuild