aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2021-07-19 18:00:00 +0200
committerJonas Bernoulli <jonas@bernoul.li>2021-07-20 13:00:02 +0200
commitfd5cf61730af2051200f81741fd21e8c54f19164 (patch)
tree9427fad75a60bf820998b4aa575881d01a7458af /Documentation
parentbf9cc19a3287f6a3cc5c1836312f0d18b38b6e45 (diff)
magit-process-git: New function
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/magit.org14
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/magit.org b/Documentation/magit.org
index fdbc88e..2ac557e 100644
--- a/Documentation/magit.org
+++ b/Documentation/magit.org
@@ -7813,6 +7813,20 @@ commands that have side-effects, but that should be avoided.
add a section containing git's standard error in the current
repository's process buffer.
+- Function: magit-process-git destination &rest args
+
+ Calls Git synchronously in a separate process, returning its exit
+ code. DESTINATION specifies how to handle the output, like for
+ ~call-process~, except that file handlers are supported. Enables
+ Cygwin's "noglob" option during the call and ensures unix eol
+ conversion.
+
+- Function: magit-process-file process &optional infile buffer display &rest args
+
+ Processes files synchronously in a separate process. Identical to
+ ~process-file~ but temporarily enables Cygwin's "noglob" option during
+ the call and ensures unix eol conversion.
+
If an error occurs when using one of the above functions, then that
is usually due to a bug, i.e. using an argument which is not
actually supported. Such errors are usually not reported, but when