Variable: magit-tramp-pipe-stty-settings

magit-tramp-pipe-stty-settings is a variable defined in magit-process.el.

Value

""

Documentation

Override tramp-pipe-stty-settings in magit-start-process.

The default for that Tramp variable is "-icanon min 1 time 0", which causes staging of individual hunks to hang. Using "" prevents that, but apparently has other issues, which is why it isn't the default.

This variable defaults to "" and is used to override the Tramp variable in magit-start-process. This only has an effect when using Tramp 2.6.2 or greater. This can also be set to pty, in which case a pty is used instead of a pipe. That also prevents the hanging, but doesn't work for files with DOS line endings
(see #20).

For connections that have tramp-direct-async-process enabled, staging hunks hangs, unless this variable is set to pty (see
#5220).

To fall back to the value of tramp-pipe-stty-settings, set this variable to nil.

Also see https://github.com/magit/magit/issues/4720 and https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62093.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-process.el
(defvar magit-tramp-pipe-stty-settings ""
  "Override `tramp-pipe-stty-settings' in `magit-start-process'.

The default for that Tramp variable is \"-icanon min 1 time 0\",
which causes staging of individual hunks to hang.  Using \"\"
prevents that, but apparently has other issues, which is why it
isn't the default.

This variable defaults to \"\" and is used to override the Tramp
variable in `magit-start-process'.  This only has an effect when
using Tramp 2.6.2 or greater.  This can also be set to `pty', in
which case a pty is used instead of a pipe.  That also prevents
the hanging, but doesn't work for files with DOS line endings
\(see #20).

For connections that have `tramp-direct-async-process' enabled,
staging hunks hangs, unless this variable is set to `pty' (see
#5220).

To fall back to the value of `tramp-pipe-stty-settings', set this
variable to nil.

Also see https://github.com/magit/magit/issues/4720
and https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62093.")