From e0202e3ba9bdb83dd31571f3be314fc318ba8821 Mon Sep 17 00:00:00 2001
From: Markus Reiter <me@reitermark.us>
Date: Thu, 3 Sep 2020 19:44:32 +0200
Subject: [PATCH] Re-add `HOMEBREW_DEBUG` environment variable.

---
 Library/Homebrew/env_config.rb | 4 ++++
 docs/Manpage.md                | 3 +++
 manpages/brew.1                | 6 +++++-
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/Library/Homebrew/env_config.rb b/Library/Homebrew/env_config.rb
index 627486ad56..fbcc9eaf2a 100644
--- a/Library/Homebrew/env_config.rb
+++ b/Library/Homebrew/env_config.rb
@@ -268,6 +268,10 @@ module Homebrew
         description: "If set, always assume `--verbose` when running commands.",
         boolean:     true,
       },
+      HOMEBREW_DEBUG:                     {
+        description: "If set, always assume `--debug` when running commands.",
+        boolean:     true,
+      },
       HOMEBREW_VERBOSE_USING_DOTS:        {
         description: "If set, verbose output will print a `.` no more than once a minute. This can be " \
                      "useful to avoid long-running Homebrew commands being killed due to no output.",
diff --git a/docs/Manpage.md b/docs/Manpage.md
index f09dab69a7..c787b97c9e 100644
--- a/docs/Manpage.md
+++ b/docs/Manpage.md
@@ -1675,6 +1675,9 @@ For example, you might add something like the following to your ~/.profile, ~/.b
   * `HOMEBREW_VERBOSE`:
     If set, always assume `--verbose` when running commands.
 
+  * `HOMEBREW_DEBUG`:
+    If set, always assume `--debug` when running commands.
+
   * `HOMEBREW_VERBOSE_USING_DOTS`:
     If set, verbose output will print a `.` no more than once a minute. This can be useful to avoid long-running Homebrew commands being killed due to no output.
 
diff --git a/manpages/brew.1 b/manpages/brew.1
index a3c8906375..b2dc9418a9 100644
--- a/manpages/brew.1
+++ b/manpages/brew.1
@@ -1,7 +1,7 @@
 .\" generated with Ronn/v0.7.3
 .\" http://github.com/rtomayko/ronn/tree/0.7.3
 .
-.TH "BREW" "1" "August 2020" "Homebrew" "brew"
+.TH "BREW" "1" "September 2020" "Homebrew" "brew"
 .
 .SH "NAME"
 \fBbrew\fR \- The Missing Package Manager for macOS
@@ -2295,6 +2295,10 @@ If set, always use the latest stable tag (even if developer commands have been r
 If set, always assume \fB\-\-verbose\fR when running commands\.
 .
 .TP
+\fBHOMEBREW_DEBUG\fR
+If set, always assume \fB\-\-debug\fR when running commands\.
+.
+.TP
 \fBHOMEBREW_VERBOSE_USING_DOTS\fR
 If set, verbose output will print a \fB\.\fR no more than once a minute\. This can be useful to avoid long\-running Homebrew commands being killed due to no output\.
 .
-- 
GitLab