Add username parameters to hooks
When a parameter is added from an AccountInfo object, it gets
or if the account does not have an email address:
where "Name" can be "Anonymous Coward" if the name was not set.
From this information hooks cannot easily get the account username.
For the parameters that take an AccountInfo, automatically add an
additional parameter for the username, with the name being derived
from the AccountInfo parameter. So for example if the hook takes
--change-owner Name (Email)
it will also automatically have:
For the ref-update and commit-received hooks that take a user,
but not from AccountInfo, explicitly add an --uploader-username
4 files changed