summaryrefslogtreecommitdiff
path: root/devdocs/git/git-sh-i18n--envsubst.html
diff options
context:
space:
mode:
Diffstat (limited to 'devdocs/git/git-sh-i18n--envsubst.html')
-rw-r--r--devdocs/git/git-sh-i18n--envsubst.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/devdocs/git/git-sh-i18n--envsubst.html b/devdocs/git/git-sh-i18n--envsubst.html
new file mode 100644
index 00000000..d6849147
--- /dev/null
+++ b/devdocs/git/git-sh-i18n--envsubst.html
@@ -0,0 +1,11 @@
+<h1>git-sh-i18n--envsubst</h1> <h2 id="_name">Name</h2> <div class="sectionbody"> <p>git-sh-i18n—​envsubst - Git’s own envsubst(1) for i18n fallbacks</p> </div> <h2 id="_synopsis">Synopsis</h2> <div class="sectionbody"> <div class="verseblock"> <pre class="content">eval_gettext () {
+ printf "%s" "$1" | (
+ export PATH $(git sh-i18n--envsubst --variables "$1");
+ git sh-i18n--envsubst "$1"
+ )
+}</pre> </div> </div> <h2 id="_description">Description</h2> <div class="sectionbody"> <p>This is not a command the end user would want to run. Ever. This documentation is meant for people who are studying the plumbing scripts and/or are writing new ones.</p> <p><code>git sh-i18n--envsubst</code> is Git’s stripped-down copy of the GNU <code>envsubst(1)</code> program that comes with the GNU gettext package. It’s used internally by <a href="git-sh-i18n">git-sh-i18n[1]</a> to interpolate the variables passed to the <code>eval_gettext</code> function.</p> <p>No promises are made about the interface, or that this program won’t disappear without warning in the next version of Git. Don’t use it.</p> </div><div class="_attribution">
+ <p class="_attribution-p">
+ &copy; 2012&ndash;2024 Scott Chacon and others<br>Licensed under the MIT License.<br>
+ <a href="https://git-scm.com/docs/git-sh-i18n--envsubst" class="_attribution-link">https://git-scm.com/docs/git-sh-i18n--envsubst</a>
+ </p>
+</div>