author | David Aguilar <davvid@gmail.com> | |
Fri, 22 Aug 2008 07:30:50 +0000 (00:30 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 23 Aug 2008 05:38:21 +0000 (22:38 -0700) | ||
commit | a7b3269c4b9acde052d75b6dc54c8f869b77eb44 | |
tree | 4ab882a68296c0f4cd16ee0231662085e0825100 | tree | snapshot |
parent | 34ad1afa712da208f29d8300b73a6753516564fb | commit | diff |
git-submodule: replace duplicated code with a module_list function
Several call sites in git-submodule.sh used the same idiom for getting
submodule information:
git ls-files --stage -- "$@" | grep '^160000 '
This patch removes this duplication by introducing a module_list function.
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Several call sites in git-submodule.sh used the same idiom for getting
submodule information:
git ls-files --stage -- "$@" | grep '^160000 '
This patch removes this duplication by introducing a module_list function.
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh | diff | blob | history |