[Info-vax] in-memory editing with EDT or EVE
Lawrence D'Oliveiro
ldo at nz.invalid
Sat Nov 23 16:15:52 EST 2024
On Sat, 23 Nov 2024 07:42:42 -0600, Craig A. Berry wrote:
> On 11/22/24 8:02 PM, Lawrence D'Oliveiro wrote:
>
>> On Linux systems at least, temporary files are usually created in /tmp,
>> and distros commonly mount an instance of tmpfs on that, so no actual
>> disk files need be created.
>
> But that is not what git does when staging a commit.
Hmm, git does use special fixed file names like .git/COMMIT_EDITMSG
and .git/ADD_EDIT.patch for particular editing purposes ... given that
COMMIT_EDITMSG retains its previous contents, perhaps it doesn’t quite
count as a “temporary file” ...
I was thinking more about what happens in general when some program
invokes $EDITOR or $VISUAL to let the user create/edit some text input. It
is usual to put the file in $TMPDIR.
More information about the Info-vax
mailing list