git-p4: add config to retry p4 commands; retry 3 times by default
authorLars Schneider <redacted>
Sun, 4 Dec 2016 14:03:11 +0000 (15:03 +0100)
committerJunio C Hamano <redacted>
Mon, 5 Dec 2016 22:55:32 +0000 (14:55 -0800)
commit89a6ecc55b55ae87c39c5d9edb115731550fba95
treea6e54354bbf5eac4f74f3b698b988011720cb0d8
parent454cb6bd52a4de614a3633e4f547af03d5c3b640
git-p4: add config to retry p4 commands; retry 3 times by default

P4 commands can fail due to random network issues. P4 users can counter
these issues by using a retry flag supported by all p4 commands [1].

Add an integer Git config value `git-p4.retries` to define the number of
retries for all p4 invocations. If the config is not defined then set
the default retry count to 3.

[1] https://www.perforce.com/perforce/doc.current/manuals/cmdref/global.options.html

Signed-off-by: Lars Schneider <redacted>
Reviewed-by: Luke Diamand <redacted>
Signed-off-by: Junio C Hamano <redacted>
Documentation/git-p4.txt
git-p4.py
git clone https://git.99rst.org/PROJECT