title: CODEOWNERS: Exclude group from directory (git)
body: <p>My team <code>&lt;team-1&gt;</code> is sharing a github repo with <code>&lt;team-2&gt;</code>. The repo looks something like this (Simplified example):</p>
  <pre><code>infrastructure/
         |
         |-- .github/CODEOWNERS 
         |
         |-- directory1/ 
                 |
                 |-- subdirectory1.1/
                 |
                 |-- subdirectory1.2/
                |
         |-- directory2/ 
                 |
                 |-- subdirectory2.1/
                 |
                 |-- subdirectory2.2/
                |
         |-- directory3/ 
                 |
                 |-- subdirectory3.1/
                 |
                 |-- subdirectory3.2/
         
  </code></pre>
  <p><code>&lt;team-2&gt;</code> is the CODEOWNER of every directory in the repo, and my team <code>&lt;team-1&gt;</code> owns only <code>subdirectory1.1</code> and <code>subdirectory2.1</code>.</p>
  <p>In otherwords the CODEOWNERS file looks something like this:</p>
  <p><strong>github/CODEOWNERS</strong></p>
  <pre><code>* @mycompany/team2
  /infrastructure/directory1/subdirectory1.1 @mycompany/team1
  /infrastructure/directory1/subdirectory1.1 @mycompany/team1
  </code></pre>
  <hr />
  <p>Given the aforementioned, what I would like to do is exclude <code>team2</code> from every folder that team1 owns, ideally without removing the wildcard in the codeowners file.</p>
  <pre><code>* @mycompany/team2
  /infrastructure/directory1/subdirectory1.1 @mycompany/team1 AND EXCLUDE TEAM2
  /infrastructure/directory1/subdirectory1.1 @mycompany/team1 AND EXCLUDE TEAM2
  </code></pre>
  <p>What is the best way to do that without rewriting the whole codeowners logic?</p>