The patches generated by do-rebase depend on the user having core.abbrv=11
in their .gitconfig and also a diff.orderFile set.
These assumptions were removed for the git format-patch command by passing
all the configuration as options, but it was still present for git diff.
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
This adds --no-signature to do-rebase's diff format-patch invocation, so the
only things that change are the actual patch contents.
Signed-off-by: Peter Jones <pjones@redhat.com>
Currently the script always pull the patches from rhboot Github repo, but
for testing and developing purposes may be useful to use a different one.
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
The script has set -u so calling do-rebase --help fails with the following:
$ ./do-rebase --help
./do-rebase: line 16: $1: unbound variable
Avoid this by setting a default value when doing the parameter expansion
for the positional parameter $1 passed to the usage() function.
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
The do-rebase script generate patches with git-format-patch, but the pkg
expects some non-default git configurations for the diffs and stats.
So instead requiring developers to setup these config options, pass them
to git-format-patch in do-rebase to generate the proper patches.
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>