diff options
author | Avery Pennarun <apenwarr@gmail.com> | 2009-05-30 00:48:07 -0400 |
---|---|---|
committer | Avery Pennarun <apenwarr@gmail.com> | 2009-05-30 01:12:58 -0400 |
commit | 8e79043c47d69032a86e5587a69289304dd5ca23 (patch) | |
tree | a56ff008bf9ab881b96fecc08a99c802eba55e4a | |
parent | slightly rearrange help message for split. (diff) | |
download | tgif-8e79043c47d69032a86e5587a69289304dd5ca23.tar.xz |
FIXME help for --squash option
-rwxr-xr-x | git-subtree.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/git-subtree.sh b/git-subtree.sh index ea0294fb79..65b6348fe4 100755 --- a/git-subtree.sh +++ b/git-subtree.sh @@ -23,6 +23,8 @@ b,branch= create a new branch from the split subtree ignore-joins ignore prior --rejoin commits onto= try connecting new tree to an existing one rejoin merge the new branch back into HEAD + options for 'merge' and 'pull' +squash merge subtree changes as a single commit " eval $(echo "$OPTS_SPEC" | git rev-parse --parseopt -- "$@" || echo exit $?) . git-sh-setup @@ -36,6 +38,7 @@ onto= rejoin= ignore_joins= annotate= +squash= debug() { @@ -80,6 +83,8 @@ while [ $# -gt 0 ]; do --no-rejoin) rejoin= ;; --ignore-joins) ignore_joins=1 ;; --no-ignore-joins) ignore_joins= ;; + --squash) squash=1 ;; + --no-squash) squash= ;; --) break ;; *) die "Unexpected option: $opt" ;; esac |