feat: comment ID holding both bug and comment reference

Labels: area/bugs kind/feature

Timeline

Michael Muré (MichaelMure) opened

I just had a literal shower thought about this.

Instead of concatenating a part of the bug ID with a part of the comment ID, we could interleave them.

That is, instead of doing BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCC with B being a character of the bug's ID and C being a characters of the comment's ID, we could do BBBCBBBCBBBCBBBCBBBCBBBCBBBCBBBC.

This way, the longer the prefix of this ID is, the more information we get about both the bug and the comment.

We could even do an irregular pattern if we want to be able to have meaningful 4+3, 6+3 or 6+4 prefix, while still end up with a nice 30+10 for the full ID:

4+3 BCBCBCB
6+3 BCBCBCBBB
6+4 BCBCBCBBBC
30+10 BCBCBCBBBCBBBBCBBBBCBBBBCBBBBCBBBBCBBBBC

Originally posted by @MichaelMure in https://github.com/MichaelMure/git-bug/pull/128#issuecomment-500485911

Michael Muré (MichaelMure) added label Core

Michael Muré (MichaelMure) added label Easy pick

Michael Muré (MichaelMure) commented

This has been completed.

Michael Muré (MichaelMure) closed the bug

sudoforge added label area/bugs

sudoforge removed label Core

sudoforge removed label Easy pick

sudoforge added label kind/feature