scope autocomplete from commit history #9
Notifications
Due Date
No due date set.
Blocks
#2 configuration file
phundrak/jj-cz
Reference: phundrak/jj-cz#9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Users should be able to autocomplete the scope of their commit from the commit history of their repository.
By default, the scopes will look into the past hundred commit for scopes to auto-suggest and will use a combination of recency and frequency to best suggest scopes, using this formula:
With:
S_Rthe recency score andW_Rthe recency weightS_Fthe frequency score andW_Fthe frequency weightnthe depth of a commit and its scopec(n)the commit at depthnandc_s(n)the scope of the commit at depthnsthe scope whose score we are computing