Often we will comment our code as follows:
// TODO: This is gross and should be refactored after T123. perform_some_ugly_hack();
Usually in this case, we will just comment on T123 with "we added some ugly hack to the SomeClass class, we should fix that later" but it would be nice if this happened automatically, like "alincoln mentioned this task in $COMMIT". This would probably be difficult, but I personally would find it to be valuable.