docs(git): trim three comments
This commit is contained in:
+5
-7
@@ -4,13 +4,11 @@ local M = {}
|
||||
|
||||
local SENTINEL = "__NVIM_GIT_EDIT__"
|
||||
|
||||
-- Each git editor invocation runs this body afresh under `sh -c`. The
|
||||
-- body picks a per-invocation flag file via `$$` (the wrapping shell's
|
||||
-- pid), prints the sentinel + flag-path + abs-path on stderr so the
|
||||
-- running Neovim can find both, and polls the flag until Neovim writes
|
||||
-- it. Concurrent edits inside one git call (e.g. `rebase -i`'s todo
|
||||
-- plus N reword commits) get distinct flags because each invocation is
|
||||
-- a fresh shell with a fresh `$$`.
|
||||
-- Per-invocation: each `sh -c` body picks a flag file via `$$`,
|
||||
-- prints sentinel + flag-path + abs-path on stderr, then polls the
|
||||
-- flag until Neovim writes it. `rebase -i` fires the editor many
|
||||
-- times (todo + each reword). Each call is a fresh shell with a
|
||||
-- fresh `$$`, so flags don't collide.
|
||||
local SCRIPT = string.format(
|
||||
[=[set -eu
|
||||
flag="${TMPDIR:-/tmp}/nvim-git-editor-$$.done"
|
||||
|
||||
Reference in New Issue
Block a user