From 6355e37162437b08712085f6ca94d7b401f04c63 Mon Sep 17 00:00:00 2001
From: Adam Vandenberg <flangy@gmail.com>
Date: Mon, 16 Aug 2010 09:22:14 -0700
Subject: [PATCH] Document HOMEBREW_DEBUG_INSTALL

---
 Library/Contributions/manpages/brew.1.md | 5 +++++
 share/man/man1/brew.1                    | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md
index 613365dcfb..2c6c8cb6c3 100644
--- a/Library/Contributions/manpages/brew.1.md
+++ b/Library/Contributions/manpages/brew.1.md
@@ -193,6 +193,11 @@ Some external commands are shipped with Homebrew, and enabled by default.
     If set, instructs Homebrew to always assume `--debug` when running
     commands.
 
+  * HOMEBREW\_DEBUG\_INSTALL:
+    When a `brew install -d` or `brew install -i` drops into a shell,
+    `HOMEBREW_DEBUG_INSTALL` will be set to the name of the formula being
+    tried.
+
   * HOMEBREW\_EDITOR:
     If set, Homebrew will use this editor when editing a single formula, or
     several formulae in the same folder.
diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1
index 245aee67ca..8909fa8efa 100644
--- a/share/man/man1/brew.1
+++ b/share/man/man1/brew.1
@@ -203,6 +203,10 @@ HOMEBREW_DEBUG
 If set, instructs Homebrew to always assume \fB\-\-debug\fR when running commands\.
 .
 .TP
+HOMEBREW_DEBUG_INSTALL
+When a \fBbrew install \-d\fR or \fBbrew install \-i\fR drops into a shell, \fBHOMEBREW_DEBUG_INSTALL\fR will be set to the name of the formula being tried\.
+.
+.TP
 HOMEBREW_EDITOR
 If set, Homebrew will use this editor when editing a single formula, or several formulae in the same folder\.
 .
-- 
GitLab