[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65049: Minor update to the repro steps
From: |
Juri Linkov |
Subject: |
bug#65049: Minor update to the repro steps |
Date: |
Mon, 21 Aug 2023 09:53:28 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
>> > Yes, but where did the file git-patchyYAcN5 come from in the first
>> > place? It's that file that is the problem, not how we apply the
>> > diffs in that file.
>>
>> It's created in 'vc-git-checkin':
>>
>> (let ((patch-file (make-nearby-temp-file "git-patch")))
>> (with-temp-file patch-file
>> (insert vc-git-patch-string))
>> (unwind-protect
>> (vc-git-command nil 0 patch-file "apply" "--cached")
>
> Then this should set up EOL conversion correctly for the temporary
> file. Something like (untested):
>
> (let ((patch-file (make-nearby-temp-file "git-patch")))
> (with-temp-file patch-file
> (insert vc-git-patch-string)
> (set-buffer-file-coding-system 'unix)))
> (unwind-protect
> (vc-git-command nil 0 patch-file "apply" "--cached")
Sorry, I can't test this on Windows.
- bug#65049: Minor update to the repro steps, (continued)
- bug#65049: Minor update to the repro steps, Eli Zaretskii, 2023/08/04
- bug#65049: Minor update to the repro steps, Maxim Kim, 2023/08/06
- bug#65049: Minor update to the repro steps, Eli Zaretskii, 2023/08/07
- bug#65049: Minor update to the repro steps, Maxim Kim, 2023/08/07
- bug#65049: Minor update to the repro steps, Juri Linkov, 2023/08/20
- bug#65049: Minor update to the repro steps, Eli Zaretskii, 2023/08/20
- bug#65049: Minor update to the repro steps,
Juri Linkov <=
- bug#65049: Minor update to the repro steps, Eli Zaretskii, 2023/08/21
- bug#65049: Minor update to the repro steps, Maxim Kim, 2023/08/21
- bug#65049: Minor update to the repro steps, Eli Zaretskii, 2023/08/21
- bug#65049: Minor update to the repro steps, Maxim Kim, 2023/08/21
- bug#65049: Minor update to the repro steps, Eli Zaretskii, 2023/08/22
- bug#65049: Minor update to the repro steps, Maxim Kim, 2023/08/22
- bug#65049: Minor update to the repro steps, Eli Zaretskii, 2023/08/22
- bug#65049: Minor update to the repro steps, Maxim Kim, 2023/08/22
- bug#65049: Minor update to the repro steps, Maxim Kim, 2023/08/23
- bug#65049: Minor update to the repro steps, Eli Zaretskii, 2023/08/23