Skip to content

Commit d7927d4

Browse files
avargitster
authored andcommitted
git-sh-setup: remove unused sane_egrep() function
The is_zero_oid() function in git-submodule.sh has not been used since e83e333 (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/[email protected]/ 1. https://lore.kernel.org/git/[email protected]/ Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6e3b034 commit d7927d4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

git-sh-setup.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,6 @@ sane_grep () {
177177
GREP_OPTIONS= LC_ALL=C grep @@SANE_TEXT_GREP@@ "$@"
178178
}
179179
180-
sane_egrep () {
181-
GREP_OPTIONS= LC_ALL=C egrep @@SANE_TEXT_GREP@@ "$@"
182-
}
183-
184180
is_bare_repository () {
185181
git rev-parse --is-bare-repository
186182
}

0 commit comments

Comments
 (0)