git-p4: open temporary patch file for write only
commit4cf67ae1b6c80eb8a63cc8dd752bd3951cffa104
authorJoel Holdsworth <jholdsworth@nvidia.com>
Thu, 16 Dec 2021 13:46:18 +0000 (16 13:46 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Dec 2021 22:06:36 +0000 (16 14:06 -0800)
tree98d88d4844c59629e61435125acd8845ae1fbcd6
parent9732e2229c9a1f5285109eecef0dddff16be0ace
git-p4: open temporary patch file for write only

The patchRCSKeywords method creates a temporary file in which to store
the patched output data. Previously this file was opened in "w+" mode
(write and read), but the code never reads the contents of the file
while open, so it only needs to be opened in "w" mode (write-only).

Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py