* .config/git/config: Add salsa and gh url aliases.
[~bandali/configs] / .config / git / config
index a56c182..535ced4 100644 (file)
@@ -1,10 +1,10 @@
 [user]
        name = Amin Bandali
 [user]
        name = Amin Bandali
-       email = mab@gnu.org
-       signingkey = BE6273738E616D6D1B3A08E8A21A020248816103
+       email = bandali@gnu.org
+       signingKey = BE6273738E616D6D1B3A08E8A21A020248816103
 
 
-[commit]
-       gpgsign = true
+[tag]
+       gpgSign = true
 
 # [format]
 #      signoff = true
 
 # [format]
 #      signoff = true
        a = add
        s = status
        sl = status --long
        a = add
        s = status
        sl = status --long
+       l = log
        c = checkout
        cb = checkout -b
        b = branch
        c = checkout
        cb = checkout -b
        b = branch
+       d = diff
+       f = fetch
        r = rebase
        p = pull
        pr = pull --rebase
        r = rebase
        p = pull
        pr = pull --rebase
        psf = push --force
        nmam = "!f() { notmuch show --format=raw $1 | git am -; }; f"
        nmam3 = "!f() { notmuch show --format=raw $1 | git am -3 -; }; f"
        psf = push --force
        nmam = "!f() { notmuch show --format=raw $1 | git am -; }; f"
        nmam3 = "!f() { notmuch show --format=raw $1 | git am -3 -; }; f"
+       gnu = config user.email 'bandali@gnu.org'
+       kelar = config user.email 'bandali@kelar.org'
+       sfl = config user.email 'amin.bandali@savoirfairelinux.com'
+       canonical = config user.email 'amin.bandali@canonical.com'
 
 [color]
        ui = auto
 
 [color]
        ui = auto
 #      branch=true
 
 [github]
 #      branch=true
 
 [github]
-       user = mabgnu
+       user = bandali0
 
 [sendemail]
 
 [sendemail]
-       smtpuser = mab
+       smtpuser = bandali
        smtpserver = fencepost.gnu.org
        smtpserverport = 587
        smtpencryption = tls
        smtpserver = fencepost.gnu.org
        smtpserverport = 587
        smtpencryption = tls
 
 [transfer]
        fsckObjects = true
 
 [transfer]
        fsckObjects = true
+
+[init]
+       defaultBranch = main
+
+[url "bandali@git.launchpad.net:"]
+       insteadof = lp:
+[url "git@salsa.debian.org:"]
+       insteadof = salsa:
+[url "git@salsa.debian.org:gnome-team/"]
+       insteadof = pkg-gnome:
+[url "git@salsa.debian.org:bandali/"]
+       insteadof = salsa-bandali:
+[url "git@github.com:"]
+       insteadof = gh:
+[merge "dpkg-mergechangelogs"]
+       name = debian/changelog merge driver
+       driver = dpkg-mergechangelogs -m %O %A %B %A
+
+[includeIf "gitdir:~/s/canonical/"]
+       path = ~/.config/git/config.canonical
+[includeIf "gitdir:~/s/sfl/"]
+       path = ~/.config/git/config.sfl