Commit 968a91d7 authored by Tomáš Hübelbauer's avatar Tomáš Hübelbauer

Add instructions for setting up the pre-commit hook

parent 65291d6f
......@@ -22,13 +22,16 @@ One last alias for `bash.exe` we could use is `wsl`, but while that works fine i
So yeah, I need to settle for PowerShell.
## Try this out
- Set up the pre-commit hook:
```sh
cd .git/hooks
cp pre-commit.sample pre-commit
code pre-commit
cp .git/hooks/pre-commit.sample .git/hooks/pre-commit
code .git/hooks/pre-commit
```
`code .git/hooks/pre-commit`
`.git/hooks/pre-commit`
```sh
#!/usr/bin/env bash
......@@ -36,8 +39,6 @@ code pre-commit
powershell cmd/pre-commit.ps1 || bash cmd/pre-commit.sh
```
## Try this out
- Open the file and make some changes
- `open Title.docx` on Unix
- `start Title.docx` on Windows
......
......@@ -3,8 +3,8 @@
<Template>Normal.dotm</Template>
<TotalTime>4</TotalTime>
<Pages>1</Pages>
<Words>13</Words>
<Characters>77</Characters>
<Words>14</Words>
<Characters>85</Characters>
<Application>Microsoft Office Word</Application>
<DocSecurity>0</DocSecurity>
<Lines>1</Lines>
......@@ -13,7 +13,7 @@
<Company>
</Company>
<LinksUpToDate>false</LinksUpToDate>
<CharactersWithSpaces>89</CharactersWithSpaces>
<CharactersWithSpaces>98</CharactersWithSpaces>
<SharedDoc>false</SharedDoc>
<HyperlinksChanged>false</HyperlinksChanged>
<AppVersion>16.0000</AppVersion>
......
......@@ -10,7 +10,7 @@
<dc:description>
</dc:description>
<cp:lastModifiedBy>Tom</cp:lastModifiedBy>
<cp:revision>7</cp:revision>
<cp:revision>8</cp:revision>
<dcterms:created xsi:type="dcterms:W3CDTF">2017-12-31T06:50:00Z</dcterms:created>
<dcterms:modified xsi:type="dcterms:W3CDTF">2017-12-31T08:46:00Z</dcterms:modified>
<dcterms:modified xsi:type="dcterms:W3CDTF">2017-12-31T08:53:00Z</dcterms:modified>
</cp:coreProperties>
\ No newline at end of file
......@@ -103,7 +103,7 @@
</w:rPr>
</w:pPr>
</w:p>
<w:p w:rsidR="00D765A3" w:rsidRDefault="00D765A3" w:rsidP="00A15D7B">
<w:p w:rsidR="00D765A3" w:rsidRDefault="003F55FD" w:rsidP="00A15D7B">
<w:pPr>
<w:rPr>
<w:lang w:val="en-US" />
......@@ -113,21 +113,34 @@
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
<w:t>Hey</w:t>
</w:r>
<w:r w:rsidR="00B24E8E">
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
<w:t xml:space="preserve"> you</w:t>
<w:t>One last test</w:t>
</w:r>
<w:bookmarkStart w:id="0" w:name="_GoBack" />
<w:bookmarkEnd w:id="0" />
<w:proofErr w:type="gramStart" />
<w:r>
<w:rPr>
<w:lang w:val="en-US" />
</w:rPr>
<w:t>.</w:t>
<w:t xml:space="preserve">! </w:t>
</w:r>
<w:proofErr w:type="gramEnd" />
<w:r w:rsidRPr="003F55FD">
<w:rPr>
<mc:AlternateContent>
<mc:Choice Requires="w16se" />
<mc:Fallback>
<w:rFonts w:ascii="Segoe UI Emoji" w:eastAsia="Segoe UI Emoji" w:hAnsi="Segoe UI Emoji" w:cs="Segoe UI Emoji" />
</mc:Fallback>
</mc:AlternateContent>
<w:lang w:val="en-US" />
</w:rPr>
<mc:AlternateContent>
<mc:Choice Requires="w16se">
<w16se:symEx w16se:font="Segoe UI Emoji" w16se:char="1F60A" />
</mc:Choice>
<mc:Fallback>
<w:t>😊</w:t>
</mc:Fallback>
</mc:AlternateContent>
</w:r>
</w:p>
<w:p w:rsidR="00D765A3" w:rsidRDefault="00D765A3" w:rsidP="00A15D7B">
......@@ -136,6 +149,8 @@
<w:lang w:val="en-US" />
</w:rPr>
</w:pPr>
<w:bookmarkStart w:id="0" w:name="_GoBack" />
<w:bookmarkEnd w:id="0" />
</w:p>
<w:p w:rsidR="00A15D7B" w:rsidRDefault="00A15D7B" w:rsidP="00A15D7B">
<w:pPr>
......
......@@ -21,4 +21,11 @@
<w:pitch w:val="variable" />
<w:sig w:usb0="E0002AFF" w:usb1="C000247B" w:usb2="00000009" w:usb3="00000000" w:csb0="000001FF" w:csb1="00000000" />
</w:font>
<w:font w:name="Segoe UI Emoji">
<w:panose1 w:val="020B0502040204020203" />
<w:charset w:val="00" />
<w:family w:val="swiss" />
<w:pitch w:val="variable" />
<w:sig w:usb0="00000003" w:usb1="02000000" w:usb2="00000000" w:usb3="00000000" w:csb0="00000001" w:csb1="00000000" />
</w:font>
</w:fonts>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:settings xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:sl="http://schemas.openxmlformats.org/schemaLibrary/2006/main" mc:Ignorable="w14 w15 w16se w16cid">
<w:zoom w:percent="100" />
<w:proofState w:spelling="clean" w:grammar="clean" />
<w:defaultTabStop w:val="720" />
<w:characterSpacingControl w:val="doNotCompress" />
<w:compat>
......@@ -13,6 +14,7 @@
<w:rsids>
<w:rsidRoot w:val="00A15D7B" />
<w:rsid w:val="00010DFF" />
<w:rsid w:val="003F55FD" />
<w:rsid w:val="00856154" />
<w:rsid w:val="00A15D7B" />
<w:rsid w:val="00AF17CA" />
......@@ -44,7 +46,7 @@
</w:shapeDefaults>
<w:decimalSymbol w:val="." />
<w:listSeparator w:val="," />
<w14:docId w14:val="50DE6E5A" />
<w14:docId w14:val="032A01EA" />
<w15:chartTrackingRefBased />
<w15:docId w15:val="{90CCC0EA-AA90-4325-8FB8-A59C568892EB}" />
</w:settings>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment