Some implementors of CommitValidationListener may need the repository
config (e.g. in order to use DiffFormatter). At the moment they need to
reopen the repository for this, but since callers have it already
available they can simply provide it.
This makes the objects that are available to implementors of
CommitValidationListener more consistent with the objects that are
available to implementors of MergeValidationListener, which already
gets the repository and hence its config. We do not want to provide the
Repository instance as it is intentionally write protected when batch
updates are done.
Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: Ie9439e4196c894ff261f98ba38a9db9d57e209d8