Signed-off-by: Yann Dirson <ydirson@xxxxxxxxxx> --- contrib/stg-swallow | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/contrib/stg-swallow b/contrib/stg-swallow new file mode 100755 index 0000000..5014f39 --- /dev/null +++ b/contrib/stg-swallow @@ -0,0 +1,19 @@ +#!/bin/sh +set -e + +# stg-swallow - completely merge an unapplied patch into current one + +# Copyright (c) 2006-2007 Yann Dirson <ydirson@xxxxxxxxxx> +# Subject to the GNU GPL, version 2. + +# FIXME: +# - should provide support for conflict solving ? + +[ "$#" = 1 ] || { echo >&2 "Usage: $(basename $0) <patch>"; exit 1; } +patch="$1" + +stg pick --fold "$patch" +stg refresh +stg push "$patch" +#stg clean "$patch" +stg pop; stg clean -u - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html