gitpkgv.bbclass: cache GITPKGV result
gitpkgv.bbclass: cache GITPKGV result

gitpkgv runs the 'git rev-list | wc -l' several times when processing a
package using GITPKGV.  This takes ages for packages like the linux
kernel which has a) a large repository and b) lots of subpackages.

This patch caches the result of 'git rev-list' and uses it on the next
run.

Signed-off-by: Enrico Scholz <5bd53f2ce252cb2f68d1a8370bb8b9a7d9464fd3@sigma-chemnitz.de>
Signed-off-by: Martin Jansa <516df3ff67e1fa5d153800b15fb204c0a1a389dc@gmail.com>

victronenergy/meta-openembedded,dm8tbr/kodi-wip,rofehr/meta-openembedded,epylar/meta-openembedded,fredcadete/meta-openembedded,lixinfnst/meta-openembedded,epylar/meta-openembedded,RealDigitalMedia/meta-openembedded,RedFIR/meta-openembedded,schnitzeltony/meta-openembedded,dm8tbr/kodi-wip,schnitzeltony/meta-openembedded,tobw/meta-openembedded,mrchapp/meta-openembedded,mrchapp/meta-openembedded,epylar/meta-openembedded,lixinfnst/meta-openembedded,rdm-dev/meta-openembedded,rofehr/meta-openembedded,victronenergy/meta-openembedded,lgirdk/meta-openembedded,kraj/meta-openembedded,VCTLabs/meta-openembedded,kraj/meta-openembedded,akuster/meta-openembedded,akuster/meta-openembedded,joelagnel/meta-openembedded,VCTLabs/meta-openembedded,mrchapp/meta-openembedded,rehsack/meta-openembedded,lixinfnst/meta-openembedded,openembedded/meta-openembedded,trikset/meta-openembedded,moto-timo/meta-openembedded,mrchapp/meta-openembedded,openembedded/meta-openembedded,rofehr/meta-openembedded,victronenergy/meta-openembedded,moto-timo/meta-openembedded,rofehr/meta-openembedded,trikset/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,RealDigitalMedia/meta-openembedded,akuster/meta-openembedded,joelagnel/meta-openembedded,tobw/meta-openembedded,rehsack/meta-openembedded,epylar/meta-openembedded,joelagnel/meta-openembedded,joelagnel/meta-openembedded,dm8tbr/kodi-wip,kraj/meta-openembedded,rehsack/meta-openembedded,amery/meta-openembedded,dm8tbr/kodi-wip,moto-timo/meta-openembedded,dongkc/meta-openembedded,amery/meta-openembedded,lgirdk/meta-openembedded,shr-distribution/meta-oe,openembedded/meta-openembedded,trikset/meta-openembedded,martiert/meta-openembedded,RedFIR/meta-openembedded,joelagnel/meta-openembedded,RealVNC/yocto_imx6sabreauto_meta-openembedded,lgirdk/meta-openembedded,VCTLabs/meta-openembedded,rdm-dev/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,lixinfnst/meta-openembedded,fredcadete/meta-openembedded,RealVNC/yocto_imx6sabreauto_meta-openembedded,rofehr/meta-openembedded,openembedded/meta-openembedded,schnitzeltony/meta-openembedded,RedFIR/meta-openembedded,rdm-dev/meta-openembedded,amery/meta-openembedded,akuster/meta-openembedded,schnitzeltony/meta-openembedded,RedFIR/meta-openembedded,VCTLabs/meta-openembedded,trikset/meta-openembedded,fredcadete/meta-openembedded,shr-distribution/meta-oe,dongkc/meta-openembedded,rdm-dev/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,mrchapp/meta-openembedded,rdm-dev/meta-openembedded,tobw/meta-openembedded,VCTLabs/meta-openembedded,RedFIR/meta-openembedded,rdm-dev/meta-openembedded,joelagnel/meta-openembedded,dm8tbr/kodi-wip,kraj/meta-openembedded,rehsack/meta-openembedded,martiert/meta-openembedded,martiert/meta-openembedded,MCherifiOSS/meta-openembedded,schnitzeltony/meta-openembedded,dongkc/meta-openembedded,joelagnel/meta-openembedded,dm8tbr/kodi-wip,victronenergy/meta-openembedded,epylar/meta-openembedded,amery/meta-openembedded,akuster/meta-openembedded,fredcadete/meta-openembedded,moto-timo/meta-openembedded,dongkc/meta-openembedded,RedFIR/meta-openembedded,VCTLabs/meta-openembedded,lgirdk/meta-openembedded,victronenergy/meta-openembedded,RedFIR/meta-openembedded,fredcadete/meta-openembedded,rofehr/meta-openembedded,RealDigitalMedia/meta-openembedded,shr-distribution/meta-oe,schnitzeltony/meta-openembedded,VCTLabs/meta-openembedded,MCherifiOSS/meta-openembedded,martiert/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,RealDigitalMedia/meta-openembedded,tobw/meta-openembedded,mrchapp/meta-openembedded,moto-timo/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,RedFIR/meta-openembedded,kraj/meta-openembedded,tobw/meta-openembedded,epylar/meta-openembedded,dm8tbr/kodi-wip,mrchapp/meta-openembedded,shr-distribution/meta-oe,kraj/meta-openembedded,martiert/meta-openembedded,openembedded/meta-openembedded,MCherifiOSS/meta-openembedded,fredcadete/meta-openembedded,lgirdk/meta-openembedded,openembedded/meta-openembedded,amery/meta-openembedded,amery/meta-openembedded,RealVNC/yocto_imx6sabreauto_meta-openembedded,lixinfnst/meta-openembedded,amery/meta-openembedded,rofehr/meta-openembedded,openembedded/meta-openembedded,shr-distribution/meta-oe,shr-distribution/meta-oe,schnitzeltony/meta-openembedded,RealVNC/yocto_imx6sabreauto_meta-openembedded,victronenergy/meta-openembedded,rehsack/meta-openembedded,trikset/meta-openembedded,lixinfnst/meta-openembedded,fredcadete/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,joelagnel/meta-openembedded,fredcadete/meta-openembedded,shr-distribution/meta-oe,amery/meta-openembedded,RealVNC/yocto_imx6sabreauto_meta-openembedded,epylar/meta-openembedded,rofehr/meta-openembedded,rehsack/meta-openembedded,lgirdk/meta-openembedded,shr-distribution/meta-oe,rdm-dev/meta-openembedded,dm8tbr/kodi-wip,RealDigitalMedia/meta-openembedded,trikset/meta-openembedded,tobw/meta-openembedded,openembedded/meta-openembedded,epylar/meta-openembedded,dongkc/meta-openembedded,victronenergy/meta-openembedded,trikset/meta-openembedded,rehsack/meta-openembedded,lgirdk/meta-openembedded,MCherifiOSS/meta-openembedded,MCherifiOSS/meta-openembedded,kraj/meta-openembedded,sigma-embedded/elito-org.openembedded.meta,MCherifiOSS/meta-openembedded,rdm-dev/meta-openembedded,trikset/meta-openembedded,VCTLabs/meta-openembedded