<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/108099>108099</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
git-clang-format: Unknown command line argument '-list-ignored'
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
edenreich
</td>
</tr>
</table>
<pre>
## Summary
I was thinking to use git-clang-format on a project and I encounter some issues. IDK, maybe I'm missing something silly.
### The error
Executing git-clang-format on a git project gives the following error:
```
`clang-format -list-ignored` returned 1
clang-format: Unknown command line argument '-list-ignored'. Try: 'clang-format --help'
clang-format: Did you mean '--lines'?
```
### Steps to reproduce
Tested on Ubuntu 22.04:
1. Run a container based on ubuntu 22.04: `docker run --rm -it -v $(pwd):/code -w /code ubuntu:22.04 bash`
2. Install dependencies: `apt-get update && apt-get install -y git curl clang-format`
3. Download the extension: `curl -sSL https://raw.githubusercontent.com/llvm/llvm-project/main/clang/tools/clang-format/git-clang-format > /usr/local/bin/git-clang-format && chmod +x /usr/local/bin/git-clang-format`
4. Run it: `git-clang-format` or `git clang-format`
What am I missing ?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVF2PqzYQ_TXmZQSCgYTkgYe9zUWK2qfuXvXZ4Am4a2zkj83m31eGZO_mblRVlSInhDnnzJwZD3dODpqoYZtvbHNIePCjsQ0J0pZkPyadEZeGYcmwhOcwTdxeWH5g-dN6HuHMHfhR6lepB_AGgiMYpE97xfWQnoyduAejgcNszd_Ue-BawBFI9yZoTxacmQikc4FcBsfD7wx_g4lfOoIjw3qCSToXyWNcVBrASaUu2ec81gxjki8jAVlr7OfX39-pDz5CH6c2SP-R3iDfKJZEcDJKmXNErYTl053kNr9-bo93vKmSzqdy0MaSYNscLPlgNQkoVsDnaFY-wQ_9qs1ZQ2-mKVqkpCbgdggTaQ8M63tGrDOAF3uJUIb1vXY6kpoZ1o-VDlLAxQSYiOuFOI1aLsaX7ePifjH52dPsYrctzdaI0NPnuBdynkR09kcXtA-AmOXVL_YVGfwZove90Z5LTRY67lZYuIcB2-bC9K9kwQYNaWonSKWH9A0YVgx381kw3EcBbHsjCNIz3H6uXKx8WtiixvhRFmZw1M5zpUDQTFqQ7iW5qySffTqQhzAL7gkYbhlu4favvALTyzI9fbAK7oy-iZQZHMxZK8PFMlX07kk7afRVZkGm7vkPGL2f3VoFw9byczZIP4YuOLLRJdI-683EsFXq7faVXueWYTtxqWPZMQuGrTdGudvzLStsv9wAVn6PbgVnI6XpuWLYdgvV19jVhH6cjACG397_K_LDjmrtu_TX8h8EgrHXN48dXc-_Ru6BT3D8WBA_p3c5E9GUYl_ueUJNUeM2zzflDpOx4XtRUM67shY177Aq682mQMSq7E4dlVUiG8yxyvdFjsVmi5htUIjTrtiXu_pUYlWxKqeJS5XFDmTGDsmyv5oi3-X7faJ4R8otOxXx3n6MW9Y2S-e6MDhW5fFau59MXnpFzRdb_s-GSIJVzf1UrRP1r2O0rmKG7bWatwb_CQAA___rhe4-">