aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2025-01-24 12:29:04 +0100
committerOscar Najera <hi@oscarnajera.com>2025-01-24 12:29:04 +0100
commitb7b9224ae1482dfdb07f0d05835678a5c1d23bf9 (patch)
tree04d78689fade1d2d3bcbe7c6aa6c3aa99c692c1d
parent21c35c52b1ff7d6c54187f9983214a16af34f85c (diff)
downloaddotfiles-b7b9224ae1482dfdb07f0d05835678a5c1d23bf9.tar.gz
dotfiles-b7b9224ae1482dfdb07f0d05835678a5c1d23bf9.tar.bz2
dotfiles-b7b9224ae1482dfdb07f0d05835678a5c1d23bf9.zip
checkout gitlab merge-requestsHEADmaster
-rw-r--r--home-dots/dot-gitconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/home-dots/dot-gitconfig b/home-dots/dot-gitconfig
index cacdd3e..de999cf 100644
--- a/home-dots/dot-gitconfig
+++ b/home-dots/dot-gitconfig
@@ -23,6 +23,10 @@
[diff]
algorithm = histogram
+# https://docs.gitlab.com/ee/user/project/merge_requests/merge_request_troubleshooting.html#check-out-locally-by-adding-a-git-alias
+[alias]
+ mr = !sh -c 'git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' -
+
[sendemail]
smtpEncryption = tls
smtpServer = mail.oscarnajera.com