aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2021-07-20 16:13:47 +0200
committerJonas Bernoulli <jonas@bernoul.li>2021-07-20 16:13:47 +0200
commitda5ac05e09b93f4d00dc6b6761860a4ca32ebfa9 (patch)
tree281d4da305594565001b35a30671bac40be03788
parentd5ce70d3bb6b066c179a1cc8850300b5c3f23854 (diff)
manual: Improve "Git Executable"
-rw-r--r--Documentation/magit.org21
-rw-r--r--Documentation/magit.texi21
2 files changed, 28 insertions, 14 deletions
diff --git a/Documentation/magit.org b/Documentation/magit.org
index e277c8a..f68bcd3 100644
--- a/Documentation/magit.org
+++ b/Documentation/magit.org
@@ -8,7 +8,7 @@
#+TEXINFO_DIR_CATEGORY: Emacs
#+TEXINFO_DIR_TITLE: Magit: (magit).
#+TEXINFO_DIR_DESC: Using Git from Emacs with Magit.
-#+SUBTITLE: for version 3.1.1 (v3.1.1-53-gcbe1c0948+1)
+#+SUBTITLE: for version 3.1.1 (v3.1.1-54-gd5ce70d3b+1)
#+TEXINFO_DEFFN: t
#+OPTIONS: H:4 num:3 toc:2
@@ -25,7 +25,7 @@ directly from within Emacs. While many fine Git clients exist, only
Magit and Git itself deserve to be called porcelains.
#+TEXINFO: @noindent
-This manual is for Magit version 3.1.1 (v3.1.1-53-gcbe1c0948+1).
+This manual is for Magit version 3.1.1 (v3.1.1-54-gd5ce70d3b+1).
#+BEGIN_QUOTE
Copyright (C) 2015-2021 Jonas Bernoulli <jonas@bernoul.li>
@@ -1934,11 +1934,18 @@ or path that is used on remote machines.
The ~git~ executable used by Magit on remote machines over Tramp.
Normally this should be just the string "git".
-If Emacs is unable find the correct executable, then you can work
-around that by explicitly setting the value of these two options.
-Doing that should be considered a kludge; it is better to make sure
-that the order in the environment variable ~$PATH~ is correct, and
-that Emacs is started with that environment in effect.
+If Emacs is unable to find the correct executable, then you can
+work around that by explicitly setting the value of one of these two
+options. Doing that should be considered a kludge; it is better to
+make sure that the order in ~exec-path~ or ~tramp-remote-path~ is correct.
+
+Note that ~exec-path~ is set based on the value of the ~PATH~ environment
+variable that is in effect when Emacs is started. If you set ~PATH~ in
+your shell's init files, then that only has an effect on Emacs if you
+start it from that shell (because the environment of a process is only
+passed to its child processes, not to arbitrary other processes). If
+that is not how you start Emacs, then the ~exec-path-from-shell~ package
+can help; though honestly I consider that a kludge too.
The command ~magit-debug-git-executable~ can be useful to find out where
Emacs is searching for ~git~.
diff --git a/Documentation/magit.texi b/Documentation/magit.texi
index f1043d7..0534677 100644
--- a/Documentation/magit.texi
+++ b/Documentation/magit.texi
@@ -31,7 +31,7 @@ General Public License for more details.
@finalout
@titlepage
@title Magit User Manual
-@subtitle for version 3.1.1 (v3.1.1-53-gcbe1c0948+1)
+@subtitle for version 3.1.1 (v3.1.1-54-gd5ce70d3b+1)
@author Jonas Bernoulli
@page
@vskip 0pt plus 1filll
@@ -53,7 +53,7 @@ directly from within Emacs. While many fine Git clients exist, only
Magit and Git itself deserve to be called porcelains.
@noindent
-This manual is for Magit version 3.1.1 (v3.1.1-53-gcbe1c0948+1).
+This manual is for Magit version 3.1.1 (v3.1.1-54-gd5ce70d3b+1).
@quotation
Copyright (C) 2015-2021 Jonas Bernoulli <jonas@@bernoul.li>
@@ -2629,11 +2629,18 @@ The @code{git} executable used by Magit on remote machines over Tramp.
Normally this should be just the string "git".
@end defopt
-If Emacs is unable find the correct executable, then you can work
-around that by explicitly setting the value of these two options.
-Doing that should be considered a kludge; it is better to make sure
-that the order in the environment variable @code{$PATH} is correct, and
-that Emacs is started with that environment in effect.
+If Emacs is unable to find the correct executable, then you can
+work around that by explicitly setting the value of one of these two
+options. Doing that should be considered a kludge; it is better to
+make sure that the order in @code{exec-path} or @code{tramp-remote-path} is correct.
+
+Note that @code{exec-path} is set based on the value of the @code{PATH} environment
+variable that is in effect when Emacs is started. If you set @code{PATH} in
+your shell's init files, then that only has an effect on Emacs if you
+start it from that shell (because the environment of a process is only
+passed to its child processes, not to arbitrary other processes). If
+that is not how you start Emacs, then the @code{exec-path-from-shell} package
+can help; though honestly I consider that a kludge too.
The command @code{magit-debug-git-executable} can be useful to find out where
Emacs is searching for @code{git}.