git p4 test: refactor marshal_dump
authorPete Wyckoff <pw@padd.com>
Wed, 4 Jul 2012 13:34:19 +0000 (09:34 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Jul 2012 06:22:00 +0000 (23:22 -0700)
commit798d598080a68deb4958d69adacee409a23b467b
tree9b09f5f8899b4f0e9c1917a7feaf1d02db6c44a1
parentc47178d4f0d7331a75f8e0625fd2facd1b5fee4e
git p4 test: refactor marshal_dump

This function will be useful in future tests.  Move it to
the git-p4 test library.  Let it accept an optional argument
to pick a certain marshaled object out of the input stream.

Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-git-p4.sh
t/t9800-git-p4-basic.sh