summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitconfig1
1 files changed, 1 insertions, 0 deletions
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