Pre commit hook. What you want is a pre commit hook. <span></span><br><br>On Monday, December 21, 2015, Amir Michail via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><blockquote type="cite"><div>On Dec 21, 2015, at 5:56 PM, Greg Parker &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;gparker@apple.com&#39;);" target="_blank">gparker@apple.com</a>&gt; wrote:</div><br><div><blockquote type="cite" style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br>On Dec 21, 2015, at 2:53 PM, Amir Michail via swift-evolution &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;swift-evolution@swift.org&#39;);" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br><br><blockquote type="cite">On Dec 21, 2015, at 5:38 PM, Douglas Gregor &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;dgregor@apple.com&#39;);" target="_blank">dgregor@apple.com</a>&gt; wrote:<br><br><blockquote type="cite">On Dec 21, 2015, at 11:07 AM, Amir Michail via swift-evolution &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;swift-evolution@swift.org&#39;);" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br><br>Upon a commit, these comments would be automatically removed from the source and combined into a single commit comment.<br><br>In this way, you would not need to remember what changes you are committing in order to make up a commit comment. You just comment the code as you make the changes.<br><br>A special syntax would be used for commit comments so they are never confused with normal comments.<br><br>Note also that in the case of multiple changes being committed at once, these commit comments would give a more accurate mapping of the individual comments to the code changes they refer to.<br></blockquote><br>This has nothing to do with Swift.<br></blockquote><br>Aren’t comments part of Swift?<br></blockquote><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Comments are, but commits are not. We don&#39;t have any way to force source control systems like git or svn to scan our files for special comments.</span><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"></div></blockquote><div><br></div><div>If it is part of the language standard and is supported by Xcode, then many source control systems/IDEs will support it also as it gives them a competitive advantage.</div><br><blockquote type="cite"><div><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">--<span> </span></span><br style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Greg Parker     </span><a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;gparker@apple.com&#39;);" style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">gparker@apple.com</a><span style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important"><span> </span>    Runtime Wrangler</span></div></blockquote></div><br>
<img alt="" width="1" height="1" border="0" style="min-height:1px!important;width:1px!important;border-width:0!important;margin-top:0!important;margin-bottom:0!important;margin-right:0!important;margin-left:0!important;padding-top:0!important;padding-bottom:0!important;padding-right:0!important;padding-left:0!important">
</div>
</blockquote><br><br>-- <br><div dir="ltr"><div><font face="tahoma, sans-serif">&quot;Those who would give up liberty for the sake of security deserve neither liberty nor security.&quot;<br>-Benjamin Franklin<br></font></div></div><br>