<div dir="ltr"><div>Hello,</div><div>What I did was copy and paste the script into my local rtems/.git/hooks/pre-commit file, intentionally made some wrong style changes in some files and tried making a commit. I have documented how it works here <a href="https://github.com/Idadelveloper/rtems-docs/commit/a30407e159726ce745df7ab4813c5b3a58b34f93">https://github.com/Idadelveloper/rtems-docs/commit/a30407e159726ce745df7ab4813c5b3a58b34f93</a> <br></div><div>Will love feedback to also make it better.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 12, 2021 at 8:22 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Ida,<br>
<br>
On 10/07/2021 01:08, Ida Delphine wrote:<br>
> I added the functionality for my script to ignore certain directories <br>
> like /bsps/, /testsuites/, '/cpukit/zlib', '/cpukit/mghttpd'.<br>
> <a href="https://github.com/Idadelveloper/rtems/blob/master/hooks/pre-commit" rel="noreferrer" target="_blank">https://github.com/Idadelveloper/rtems/blob/master/hooks/pre-commit</a> <br>
> <<a href="https://github.com/Idadelveloper/rtems/blob/master/hooks/pre-commit" rel="noreferrer" target="_blank">https://github.com/Idadelveloper/rtems/blob/master/hooks/pre-commit</a>><br>
> Are there any extra directories I should exclude?<br>
> <br>
> Also open to more suggestions and feedback to make my code better :)<br>
<br>
what do I have to do to test this pre-commit hook?<br>
<br>
-- <br>
embedded brains GmbH<br>
Herr Sebastian HUBER<br>
Dornierstr. 4<br>
82178 Puchheim<br>
Germany<br>
email: <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
phone: +49-89-18 94 741 - 16<br>
fax: +49-89-18 94 741 - 08<br>
<br>
Registergericht: Amtsgericht München<br>
Registernummer: HRB 157899<br>
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
Unsere Datenschutzerklärung finden Sie hier:<br>
<a href="https://embedded-brains.de/datenschutzerklaerung/" rel="noreferrer" target="_blank">https://embedded-brains.de/datenschutzerklaerung/</a><br>
</blockquote></div>