From 3ba7407b8b7b7a75f720641327207d6cfdb163a2 Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Fri, 6 Sep 2013 19:43:06 +0200 Subject: submodule summary: ignore --for-status option The --for-status option was an undocumented option used only by wt-status.c, which inserted a header and commented out the output. We can achieve the same result within wt-status.c, without polluting the submodule command-line options. This will make it easier to disable the comments from wt-status.c later. The --for-status is kept so that another topic in flight (bc/submodule-status-ignored) can continue relying on it, although it is currently a no-op. Signed-off-by: Matthieu Moy Signed-off-by: Junio C Hamano --- git-submodule.sh | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'git-submodule.sh') diff --git a/git-submodule.sh b/git-submodule.sh index 297919708..c17bef106 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -1149,18 +1149,7 @@ cmd_summary() { echo fi echo - done | - if test -n "$for_status"; then - if [ -n "$files" ]; then - gettextln "Submodules changed but not updated:" | git stripspace -c - else - gettextln "Submodule changes to be committed:" | git stripspace -c - fi - printf "\n" | git stripspace -c - git stripspace -c - else - cat - fi + done } # # List all submodules, prefixed with: -- cgit v1.2.1