configs/git: fix pr fetch alias

This commit is contained in:
Aaron Bieber 2024-04-11 10:05:37 -06:00
parent 6cb1b4355b
commit c3fcf1ef8f
No known key found for this signature in database

View File

@ -29,9 +29,8 @@ in
alias = {
log = "log --color=never";
diff = "diff --color=always";
pr = ''"!f() { git fetch-pr upstream $1; git checkout pr/$1; }; f"'';
fetch-pr = ''
"!f() { git fetch $1 refs/pull/$2/head:refs/remotes/pr/$2; }; f"'';
pr = ''!f() { git fetch-pr upstream $1; git checkout pr/$1; }; f'';
fetch-pr = ''!f() { git fetch $1 refs/pull/$2/head:refs/remotes/pr/$2; }; f'';
};
}
{ push = { default = "current"; }; }