summaryrefslogtreecommitdiff
path: root/.gitconfig
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-08-15 21:24:54 +0100
committerSean Whitton <spwhitton@spwhitton.name>2019-08-15 21:25:01 +0100
commitad21f3cf2b1109709a30996ef776dd3f14c3bc09 (patch)
treeddbe5ee76ba50fe407ea7c616fd8f5b0ea058db3 /.gitconfig
parentadbe0f8f98f0918289e7f2f5ed8eb96d33da7105 (diff)
downloaddotfiles-ad21f3cf2b1109709a30996ef776dd3f14c3bc09.tar.gz
add 'mr' git alias
Diffstat (limited to '.gitconfig')
-rw-r--r--.gitconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitconfig b/.gitconfig
index 2eaf367c..b0d11eed 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -28,6 +28,9 @@
# by David Bremner:
nmam = "!f() { notmuch show --format=raw $1 | git am -; }; f"
+ # by Vincent Bernat:
+ mr = !sh -c \"git fetch $1 merge-requests/$2/head && git checkout FETCH_HEAD\" -
+
[core]
# no pager thanks
pager =