Self-Documenting Codeline

Self-Dcoumenting Codeline is a variant of the Codeline Policy pattern in which the version control tool is used to directly associate the codeline policy to the codeline as represented in the tool.

Some version control tools allow additional metadata (attributes, comments, etc.) to be associated with branches, labels, or other structures within the tool. These metadata can be used to provide documentation of the codeline policy directly through the tool, hence 'self-documenting codeline'.

If your version control tool allows such direct metadata to be associated with the codeline you may still need to write a small script or other utility to extract and present this metadata in a useful format.