<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-sh-setup.sh, branch gitk-resize-error</title>
<subtitle>Fork of git SCM with my patches.</subtitle>
<id>http://git.kilabit.info/git/atom?h=gitk-resize-error</id>
<link rel='self' href='http://git.kilabit.info/git/atom?h=gitk-resize-error'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/'/>
<updated>2021-11-29T23:41:50Z</updated>
<entry>
<title>Merge branch 'ab/sh-retire-helper-functions'</title>
<updated>2021-11-29T23:41:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-11-29T23:41:50Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=ad1260b6c994f7c0f9c259bd39f39979f7f4ecc2'/>
<id>urn:sha1:ad1260b6c994f7c0f9c259bd39f39979f7f4ecc2</id>
<content type='text'>
Make a few helper functions unused and then lose them.

* ab/sh-retire-helper-functions:
  git-sh-setup: remove "sane_grep", it's not needed anymore
  git-sh-setup: remove unused sane_egrep() function
  git-instaweb: unconditionally assume that gitweb is mod_perl capable
  Makefile: remove $(NO_CURL) from $(SCRIPT_DEFINES)
  Makefile: remove $(GIT_VERSION) from $(SCRIPT_DEFINES)
  Makefile: move git-SCRIPT-DEFINES adjacent to $(SCRIPT_DEFINES)
</content>
</entry>
<entry>
<title>git-sh-setup: remove "sane_grep", it's not needed anymore</title>
<updated>2021-10-21T23:17:57Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-10-21T19:58:00Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=ebeb39faad6e3a67c31884c3dc6b76ce58b3f15b'/>
<id>urn:sha1:ebeb39faad6e3a67c31884c3dc6b76ce58b3f15b</id>
<content type='text'>
Remove the sane_grep() shell function in git-sh-setup. The two reasons
for why it existed don't apply anymore:

1. It was added due to GNU grep supporting GREP_OPTIONS. See
   e1622bfcbad (Protect scripted Porcelains from GREP_OPTIONS insanity,
   2009-11-23).

   Newer versions of GNU grep ignore that, but even on older versions
   its existence won't matter, none of these sane_grep() uses care
   about grep's output, they're merely using it to check if a string
   exists in a file or stream. We also don't care about the "LC_ALL=C"
   that "sane_grep" was using, these greps for fixed or ASCII strings
   will behave the same under any locale.

2. The SANE_TEXT_GREP added in 71b401032b9 (sane_grep: pass "-a" if
   grep accepts it, 2016-03-08) isn't needed either, none of these grep
   uses deal with binary data.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-sh-setup: remove unused sane_egrep() function</title>
<updated>2021-10-21T23:17:57Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-10-21T19:57:59Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=d7927d428cdb6ed0d709fea2e5353d56833ae02e'/>
<id>urn:sha1:d7927d428cdb6ed0d709fea2e5353d56833ae02e</id>
<content type='text'>
The is_zero_oid() function in git-submodule.sh has not been used since
e83e3333b57 (submodule: port submodule subcommand 'summary' from shell
to C, 2020-08-13), so we can remove it, and the sane_egrep() function,
dead is_zero_oid() was the only function which still referenced it.

Unlike some other functions in git-sh-setup.sh, this function has not
been documented in git-sh-setup(1), so per [1] it should be OK to
remove it. I'm still unclear about the future of some of the other
functions[2], but any questions in that area should not apply here.

1. https://lore.kernel.org/git/xmqqr1dtgnn8.fsf@gitster.g/
1. https://lore.kernel.org/git/87tuiwjfvi.fsf@evledraar.gmail.com/

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-sh-setup: remove messaging supporting --preserve-merges</title>
<updated>2021-10-21T23:04:29Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-10-21T18:37:33Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=c1e10b2dce28b434127870ed09293cf9adc9fcc2'/>
<id>urn:sha1:c1e10b2dce28b434127870ed09293cf9adc9fcc2</id>
<content type='text'>
Remove messages that were last used by the code removed in
a74b35081c5 (rebase: drop support for `--preserve-merges`,
2021-09-07).

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-sh-setup: remove unused "pull with rebase" message</title>
<updated>2021-09-12T23:22:05Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-09-11T11:17:49Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=be8d370e3c0791e8b181ddc73cce37ff8356257c'/>
<id>urn:sha1:be8d370e3c0791e8b181ddc73cce37ff8356257c</id>
<content type='text'>
Remove the "pull with rebase" message previously used by the
git-pull.sh script, which was removed in 49eb8d39c78 (Remove
contrib/examples/*, 2018-03-25).

Even if some out-of-tree user copy/pasted the old git-pull.sh code,
and relied on passing it a "pull with rebase" argument, we'll fall
back on the "*" case here, they just won't get the "pull with rebase"
part of their message translated.

I don't think it's likely that anyone out-of-tree relied on that, but
I'm being conservative here per the discussion that can be found
upthread of [1].

1. https://lore.kernel.org/git/87tuiwjfvi.fsf@evledraar.gmail.com/

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>stash: optionally use the scripted version again</title>
<updated>2019-03-07T00:41:40Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2019-02-25T23:16:30Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=90a462725ef3932a2408e78a47e3dfc1b8d445cf'/>
<id>urn:sha1:90a462725ef3932a2408e78a47e3dfc1b8d445cf</id>
<content type='text'>
We recently converted the `git stash` command from Unix shell scripts
to builtins.

Let's end users a way out when they discover a bug in the
builtin command: `stash.useBuiltin`.

As the file name `git-stash` is already in use, let's rename the
scripted backend to `git-legacy-stash`.

To make the test suite pass with `stash.useBuiltin=false`, this commit
also backports rudimentary support for `-q` (but only *just* enough
to appease the test suite), and adds a super-ugly hack to force exit
code 129 for `git stash -h`.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Thomas Gummerer &lt;t.gummerer@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'va/i18n-even-more'</title>
<updated>2016-12-27T08:11:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-12-27T08:11:45Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=eef32a0653f9b4e90ace46c9f041ff41dbf4e632'/>
<id>urn:sha1:eef32a0653f9b4e90ace46c9f041ff41dbf4e632</id>
<content type='text'>
* va/i18n-even-more:
  i18n: fix misconversion in shell scripts
</content>
</entry>
<entry>
<title>i18n: fix misconversion in shell scripts</title>
<updated>2016-12-20T17:36:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-12-20T17:36:23Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=acefe2be287b099886f1240bd1f5adfa66dbadee'/>
<id>urn:sha1:acefe2be287b099886f1240bd1f5adfa66dbadee</id>
<content type='text'>
An earlier series that was merged at 2703572b3a ("Merge branch
'va/i18n-even-more'", 2016-07-13) failed to use $(eval_gettext
"string with \$variable interpolation") and instead used gettext in
a few places, and ended up showing the variable names in the
message, e.g.

    $ git submodule
    fatal: $program_name cannot be used without a working tree.

Catch these mistakes with

    $ git grep -n '[^_]gettext .*\\\$'

and fix them all to use eval_gettext instead.

Reported-by: Josh Bleecher Snyder
Acked-by: Vasco Almeida &lt;vascomalmeida@sapo.pt&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-sh-setup: be explicit where to dot-source git-sh-i18n from.</title>
<updated>2016-10-30T23:13:49Z</updated>
<author>
<name>Anders Kaseorg</name>
<email>andersk@mit.edu</email>
</author>
<published>2016-10-30T02:10:02Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=1073094f30a8dd5ae49f2146f587085c4fe86410'/>
<id>urn:sha1:1073094f30a8dd5ae49f2146f587085c4fe86410</id>
<content type='text'>
d323c6b641 ("i18n: git-sh-setup.sh: mark strings for translation",
2016-06-17) started to dot-source git-sh-i18n shell script library,
assuming that $PATH is already adjusted for our scripts, namely,
$GIT_EXEC_PATH is at the beginning of $PATH.

Old contrib scripts like contrib/convert-grafts-to-replace-refs.sh
and contrib/rerere-train.sh and third-party scripts like guilt may
however be using this as ". $(git --exec-path)/git-sh-setup",
without satisfying that assumption.  Be more explicit by specifying
its path prefixed with "$(git --exec-path)/". to be safe.

While we’re here, move the sourcing of git-sh-i18n below the shell
portability fixes.

Signed-off-by: Anders Kaseorg &lt;andersk@mit.edu&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ew/build-time-pager-tweaks'</title>
<updated>2016-08-08T21:48:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-08-08T21:48:44Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/git/commit/?id=43a42aa40303b2b5a3fdd04a04ce4f8d015d14eb'/>
<id>urn:sha1:43a42aa40303b2b5a3fdd04a04ce4f8d015d14eb</id>
<content type='text'>
The build procedure learned PAGER_ENV knob that lists what default
environment variable settings to export for popular pagers.  This
mechanism is used to tweak the default settings to MORE on FreeBSD.

* ew/build-time-pager-tweaks:
  pager: move pager-specific setup into the build
</content>
</entry>
</feed>
