changeset 788:fa3ad63ec3a3

https://github.com/novas0x2a/config-files/blob/master/.gitconfig#L89
author Jeff Hammel <k0scist@gmail.com>
date Wed, 28 Sep 2016 16:42:20 -0700
parents d265e49b965e
children 2064d617fe56
files .gitconfig
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.gitconfig	Sun Sep 25 16:29:22 2016 -0700
+++ b/.gitconfig	Wed Sep 28 16:42:20 2016 -0700
@@ -11,6 +11,7 @@
         pushbranch = !git push origin $(git rev-parse --abbrev-ref HEAD)
         root = rev-parse --show-toplevel
         st = status
+        subscribe-pulls = !"f() { REMOTE=${1:-origin}; if ! git config --local --get-all remote.${REMOTE}.fetch | grep -q refs/pull; then echo 'subscribing...' 2>&1; git config --local --add remote.${REMOTE}.fetch '+refs/pull/*/head:refs/remotes/pr/*'; fi; }; f"
         up = !git pull origin master && git push origin master
         wip = !git commit -a -m 'wip' && git push origin $(git rev-parse --abbrev-ref HEAD)