Commit 53643ae18558c41fba1c99fbe9e5e73de7fe8797

Stefan Sperling 2020-09-14T13:51:51

document why got.conf(5) will not configure the editor to use

diff --git a/got/got.conf.5 b/got/got.conf.5
index 09df173..f1c3eb0 100644
--- a/got/got.conf.5
+++ b/got/got.conf.5
@@ -177,3 +177,19 @@ file.
 .Xr got 1 ,
 .Xr git-repository 5 ,
 .Xr got-worktree 5
+.Sh CAVEATS
+.Nm
+offers no way to configure the editor spawned by
+.Cm got commit ,
+.Cm got histedit ,
+.Cm got import ,
+or
+.Cm got tag .
+This is deliberate and prevents potential arbitrary command execution
+as another user when repositories or work trees are shared between users.
+Users should set their
+.Ev VISUAL
+or
+.Ev EDITOR
+environment variables instead.
+