contrib/subtree: there's no push --squash

The documentation says that --squash is for 'add', 'merge',
'pull' and 'push', while --squash actually doesn't change
the behavior of 'push'. Correct the documentation.

Signed-off-by: Danny Lin <danny0838@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Danny Lin 2015-05-07 15:52:33 +08:00 committed by Junio C Hamano
parent 16018ae5fb
commit 6ccc71a9d0
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ b,branch= create a new branch from the split subtree
ignore-joins ignore prior --rejoin commits ignore-joins ignore prior --rejoin commits
onto= try connecting new tree to an existing one onto= try connecting new tree to an existing one
rejoin merge the new branch back into HEAD rejoin merge the new branch back into HEAD
options for 'add', 'merge', 'pull' and 'push' options for 'add', 'merge', and 'pull'
squash merge subtree changes as a single commit squash merge subtree changes as a single commit
" "
eval "$(echo "$OPTS_SPEC" | git rev-parse --parseopt -- "$@" || echo exit $?)" eval "$(echo "$OPTS_SPEC" | git rev-parse --parseopt -- "$@" || echo exit $?)"

View File

@ -146,7 +146,7 @@ OPTIONS
OPTIONS FOR add, merge, push, pull OPTIONS FOR add, merge, push, pull
---------------------------------- ----------------------------------
--squash:: --squash::
This option is only valid for add, merge, push and pull This option is only valid for add, merge, and pull
commands. commands.
+ +
Instead of merging the entire history from the subtree project, produce Instead of merging the entire history from the subtree project, produce