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 <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
bb7e32e383
commit
3ba7407b8b
@ -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:
|
||||
|
Reference in New Issue
Block a user