From git Fri Mar 09 00:23:00 2018 From: Jeremy Bicha Date: Fri, 09 Mar 2018 00:23:00 +0000 To: git Subject: feature request: git-config: Add conditional include for gitbranch Message-Id: X-MARC-Message: https://marc.info/?l=git&m=152055502815068 Use Case ====== Jeremy is a developer for Debian and Ubuntu. The same repository is used for both Debian and Ubuntu packaging but with different branches. For commits to the debian/master branch, Jeremy wants to use his @debian.org email address. For commits to the ubuntu/master branch, Jeremy wants to use his @ubuntu.com email. Proposal ======= The includeIf feature of git-config could be extended to offer a gitbranch conditional include in addition to the gitdir conditional include it already offers. Thanks, Jeremy Bicha