diff options
Diffstat (limited to '')
-rw-r--r-- | modules/by-name/gi/git/aliases.nix (renamed from modules/home.legacy/conf/git/aliases.nix) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/home.legacy/conf/git/aliases.nix b/modules/by-name/gi/git/aliases.nix index 15bf613d..96456bea 100644 --- a/modules/home.legacy/conf/git/aliases.nix +++ b/modules/by-name/gi/git/aliases.nix @@ -1,6 +1,6 @@ { lib, - config, + defaultBranchName, }: { cmr = "commit --file .git/COMMIT_EDITMSG --edit --verbose"; @@ -76,7 +76,7 @@ day = "!git log --stat --since '1 day ago' --author $(git config user.email)"; - unpush = "push --force-with-lease origin HEAD~1:${config.programs.git.extraConfig.init.defaultBranch}"; + unpush = "push --force-with-lease origin HEAD~1:${defaultBranchName}"; wip = "!git add . && git commit --amend && git push --force-with-lease"; } |