Annotating the code with feature references
While discussing different ways of automatically generating release notes, we have stumbled on related but different idea - annotating the code with references to the features this code implements and later cross-referencing these annotations with version control changelog to produce detailed log by feature.