jenkinsci/git-plugin — pull request #122 by MarkEWaite (2013-01-19 14:43:17+00:00)
Title: Improve isRevExcluded performance by avoiding call to "git show" if no exclusions are defined

If there are no inclusion patterns, no exclusion patterns and no excluded
users, then the revision cannot be excluded. If the revision cannot be
excluded, there is no reason to call "git show" to generate the list of
revisions to be tested for exclusions.

Provides some performance improvement in almost all cases which do
not define inclusion or exclusion patterns or users. Provides
significant performance improvement in those cases where the "git show"
output is very large (or hangs when being generated).

See https://groups.google.com/forum/?fromgroups=#!topic/jenkinsci-users/FjjaD7cawVs