From 0cf20e74e3a4e626f3757e99554a16e21fa5a1b7 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 17 Feb 2021 19:28:34 +0100 Subject: Add git pr alias --- .gitconfig | 1 + 1 file changed, 1 insertion(+) (limited to '.gitconfig') diff --git a/.gitconfig b/.gitconfig index a4f6125..5f9b3f1 100644 --- a/.gitconfig +++ b/.gitconfig @@ -30,6 +30,7 @@ gofmt = codereview gofmt mail = codereview mail -trust pending = codereview pending + pr = "!f() { git fetch -fu ${2:-$(git remote |grep ^upstream || echo origin)} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f" submit = codereview submit sync = codereview sync today = commit --amend --date=now --no-edit -- cgit v1.2.3-54-g00ecf