]> git.ipfire.org Git - thirdparty/git.git/commit
git-p4: refactoring of p4CmdList()
authorKilian Kilger <kkilger@gmail.com>
Thu, 21 Jul 2022 09:07:20 +0000 (09:07 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Jul 2022 16:47:06 +0000 (09:47 -0700)
commitd205483695366803e912da6ae24380c33c293467
tree7dba195b828004149ce79ce2a8393d6c4a0b7911
parent34f67c9619b56ab4718427c1a31071641f0dccdb
git-p4: refactoring of p4CmdList()

The function p4CmdList executes a Perforce command and
decodes the marshalled python dictionary. Special care has to be
taken for certain dictionary values which contain non-unicode characters.
The old handling contained separate hacks for each of the corresponding
dictionary keys. This commit tries to refactor the coding to handle the
special cases uniformely.

Signed-off-by: Kilian Kilger <kkilger@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py