Skip to content

Commit 162410f

Browse files
avargitster
authored andcommitted
git-submodule: remove unused is_zero_oid() 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. This was the last user of the sane_egrep() function in git-sh-setup.sh. I'm not removing it in case some out-of-tree user relied on it. Per the discussion that can be found upthread of [1]. 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 8b7c11b commit 162410f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

git-submodule.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ isnumber()
6363
n=$(($1 + 0)) 2>/dev/null && test "$n" = "$1"
6464
}
6565

66-
# Given a full hex object ID, is this the zero OID?
67-
is_zero_oid () {
68-
echo "$1" | sane_egrep '^0+$' >/dev/null 2>&1
69-
}
70-
7166
# Sanitize the local git environment for use within a submodule. We
7267
# can't simply use clear_local_git_env since we want to preserve some
7368
# of the settings from GIT_CONFIG_PARAMETERS.

0 commit comments

Comments
 (0)