This clearly attaches them to a specific revision of the code, which is also automatically superseded when some other change overwrites that line.
It's not far off to have a code editor plugin that shows this information visually beside the file. Kind of like the visual "git blame" in IntelliJ IDEs, but for the commit message.