[ditz-talk] [PATCH] new plugin - use sha_id.slice(0, 5) instead of ditz-123

Thomas Nichols nichols7 at googlemail.com
Mon Nov 10 12:02:41 EST 2008



William Morgan wrote on 2008/11/10 4:21:
> Reformatted excerpts from Thomas Nichols's message of 2008-11-07:
>   
>> Miniscule plugin 'sha-names' replaces names of the form 'ditz-123'
>> with 'a1b2c' and similar.
>>     
>
> As of 0.5 you can refer to any issue on the commandline with its ID. So
> is this plugin necessary?
>   

It shows only 5-char SHA ids for output, for example from 'ditz todo' or
'ditz mine', so that these become the canonical, immutable references
and the 'ditz-99' references disappear completely.

Without this plugin, 'ditz todo' shows me a list of tickets, but to get
to the immutable ID I then need to 'ditz-show engine-57'. That it
belongs to component 'engine' is not relevant to us; but more seriously,
this ID may change in future, for example if an issue is switched from
one component to another, or if two ditz trees (each having an engine-57
issue) are merged. Using e5a67 and so on obviates this problem.

But hey, it's a plugin, so if people don't want this behaviour then No
Action Required ;-)

-- Thomas




More information about the ditz-talk mailing list