contacts: gather all blame sources prior to invoking git-blame
commitdb8cae7e6035dd56970c88ac9e34bce1baa0f665
authorEric Sunshine <sunshine@sunshineco.com>
Fri, 9 Aug 2013 21:39:55 +0000 (9 17:39 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Aug 2013 16:09:01 +0000 (13 09:09 -0700)
treef4e81c8c8f0efd70dab22b2f5f4eee529c9cd032
parent9ae9ca1f95ccd3b4c1d62d856eb8b48fdff7c2d5
contacts: gather all blame sources prior to invoking git-blame

git-contacts invokes git-blame immediately upon encountering a patch
hunk. No attempt is made to consolidate invocations for multiple hunks
referencing the same file at the same revision. This can become
expensive quickly.

Any effort to reduce the number of times git-blame is run will need to
to know in advance which line ranges to blame per file per revision.
Make this information available by collecting all sources as a distinct
step from invoking git-blame.  A subsequent patch will utilize the
information to optimize git-blame invocations.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/contacts/git-contacts