| #!/bin/bash -eu | |
| . "$(dirname "$0")"/lsq-defs | |
| export GIT_DIR="$(get_git $1)/.git" | |
| queue="$(get_queue $1)" | |
| shift | |
| for commit in "$@"; do | |
| read patch rest < <(git format-patch-for-backport --no-signature --subject-prefix='' $commit -1) | |
| signoff-patch "$patch" | |
| # Can't use quilt import here because we're adding to the end | |
| mv "$patch" "$queue/" | |
| patch="$(rename-patch "$queue/$patch")" | |
| echo "Adding $commit as $patch" | |
| echo "$(basename "$patch")" >> "$queue/series" | |
| done |