[PATCH] dim: expect git backmerge to be called on an upstream branch
Jani Nikula
jani.nikula at intel.com
Tue Mar 6 10:10:26 UTC 2018
On Tue, 06 Mar 2018, Daniel Vetter <daniel at ffwll.ch> wrote:
> On Tue, Mar 06, 2018 at 11:32:05AM +0200, Jani Nikula wrote:
>> Upstream branches are defined by dim list-upstreams. Allow override for
>> when the user knows what they're doing.
>>
>> Cc: Daniel Vetter <daniel at ffwll.ch>
>> Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
>> Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
>> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
>
> Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>
Pushed, thanks for the review.
BR,
Jani.
>
>> ---
>> dim | 4 ++++
>> 1 file changed, 4 insertions(+)
>>
>> diff --git a/dim b/dim
>> index 65d82417c407..45aec403a44e 100755
>> --- a/dim
>> +++ b/dim
>> @@ -922,6 +922,10 @@ function dim_backmerge
>> branch=${1:?$usage}
>> upstream=${2:?$usage}
>>
>> + if ! dim_list_upstreams | grep -q "^$upstream\$"; then
>> + warn_or_fail "$upstream is not an upstream branch"
>> + fi
>> +
>> cd $DIM_PREFIX/drm-tip
>> tip_remote=$(repo_to_remote drm-tip)
>> git fetch -q $tip_remote || true
>> --
>> 2.11.0
>>
--
Jani Nikula, Intel Open Source Technology Center
More information about the dim-tools
mailing list