Sujet : Re: in-memory editing with EDT or EVE
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.vmsDate : 23. Nov 2024, 22:15:52
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vhtgm8$1s5d5$2@dont-email.me>
References : 1 2 3
User-Agent : Pan/0.161 (Chasiv Yar; )
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.