[swift-evolution] Proposal: Support for commit comments
Amir Michail
amichail at gmail.com
Mon Dec 21 17:00:41 CST 2015
> On Dec 21, 2015, at 5:56 PM, Greg Parker <gparker at apple.com> wrote:
>
>>
>> On Dec 21, 2015, at 2:53 PM, Amir Michail via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>
>>> On Dec 21, 2015, at 5:38 PM, Douglas Gregor <dgregor at apple.com> wrote:
>>>
>>>> On Dec 21, 2015, at 11:07 AM, Amir Michail via swift-evolution <swift-evolution at swift.org> wrote:
>>>>
>>>> Upon a commit, these comments would be automatically removed from the source and combined into a single commit comment.
>>>>
>>>> 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.
>>>>
>>>> A special syntax would be used for commit comments so they are never confused with normal comments.
>>>>
>>>> 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.
>>>
>>> This has nothing to do with Swift.
>>
>> Aren’t comments part of Swift?
>
> Comments are, but commits are not. We don't have any way to force source control systems like git or svn to scan our files for special comments.
>
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.
>
> --
> Greg Parker gparker at apple.com <mailto:gparker at apple.com> Runtime Wrangler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151221/b175c997/attachment.html>
More information about the swift-evolution
mailing list