Re: [PATCH 1/1] git-p4: auto-delete named temporary file
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 26, 2019, 16:39 UTC
- Message-ID
- <xmqqo90bj2ye.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <CANg4QoGSVQWG3QXzoiA8oDsjXaXGoZ+WMNLSPpu75eJWdrWxLQ@mail.gmail.com>
Funny that the patch is line-wrapped, which I do not recall ever seeing in GGG-generated e-mails. Dscho, do you know if anything funny is going on?
Git Gadget <gitgitgadget@gmail.com> writes:
Show 16 quoted lines
> From: "Philip.McGraw" <Philip.McGraw@bentley.com>
> ...
> diff --git a/git-p4.py b/git-p4.py
> index c71a6832e2..33bdb14fd1 100755
> --- a/git-p4.py
> +++ b/git-p4.py
> @@ -1160,13 +1160,11 @@ def exceedsLargeFileThreshold(self, relPath, contents):
> if contentsSize <=
> gitConfigInt('git-p4.largeFileCompressedThreshold'):
> return False
> contentTempFile = self.generateTempFile(contents)
> - compressedContentFile =
> tempfile.NamedTemporaryFile(prefix='git-p4-large-file', delete=False)
> - zf = zipfile.ZipFile(compressedContentFile.name, mode='w')
> - zf.write(contentTempFile, compress_type=zipfile.ZIP_DEFLATED)
> ...