From 25e56b7421934b4cd2b1708b22f71dea654cc8c6 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Fri, 16 Jun 2023 08:00:07 -0400 Subject: [PATCH] git-push-upstream no longer needed --- modules/common/shell/fish/functions/git-push-upstream.fish | 4 ---- modules/common/shell/git.nix | 5 ----- 2 files changed, 9 deletions(-) delete mode 100644 modules/common/shell/fish/functions/git-push-upstream.fish diff --git a/modules/common/shell/fish/functions/git-push-upstream.fish b/modules/common/shell/fish/functions/git-push-upstream.fish deleted file mode 100644 index a768efe..0000000 --- a/modules/common/shell/fish/functions/git-push-upstream.fish +++ /dev/null @@ -1,4 +0,0 @@ -set -l branch (git branch 2>/dev/null | grep '^\*' | colrm 1 2) -and set -l command "git push --set-upstream origin $branch" -and commandline -r $command -and commandline -f execute diff --git a/modules/common/shell/git.nix b/modules/common/shell/git.nix index e778704..9502c3c 100644 --- a/modules/common/shell/git.nix +++ b/modules/common/shell/git.nix @@ -51,7 +51,6 @@ in { gcae = "git commit --amend"; gu = "git pull"; gp = "git push"; - gpp = "git-push-upstream"; gl = "git log --graph --decorate --oneline -20"; gll = "git log --graph --decorate --oneline"; gco = "git checkout"; @@ -114,10 +113,6 @@ in { git-history = { body = builtins.readFile ./fish/functions/git-history.fish; }; - git-push-upstream = { - description = "Create upstream branch"; - body = builtins.readFile ./fish/functions/git-push-upstream.fish; - }; uncommitted = { description = "Find uncommitted git repos"; body = builtins.readFile ./fish/functions/uncommitted.fish;