[PATCH] dim: Fix -d for apply-pull

Daniel Vetter daniel.vetter at ffwll.ch
Mon May 14 16:17:46 UTC 2018


On Mon, May 14, 2018 at 3:06 PM, Jani Nikula
<jani.nikula at linux.intel.com> wrote:
> On Mon, 14 May 2018, Daniel Vetter <daniel.vetter at ffwll.ch> wrote:
>> Lots of things we didn't mark up. Reported by Dave.
>>
>> Cc: Dave Airlie <airlied at gmail.com>
>> Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
>
> The dry run is a bit hit and miss, which can be dangerous.

Yeah, I think we do a good job of not pushing anything to the remote
end when you spec -d, but you might need a git reset --hard for local
damage. Either way it's good to fix the cracks.

> Acked-by: Jani Nikula <jani.nikula at intel.com>

Thanks for taking a look, pushed.
-Daniel

>
>
>> ---
>>  dim | 8 ++++----
>>  1 file changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/dim b/dim
>> index 0c979a48bcd2..9ec43df08c4a 100755
>> --- a/dim
>> +++ b/dim
>> @@ -952,14 +952,14 @@ function dim_apply_pull
>>
>>                       return 1
>>               else
>> -                     git add -u
>> -                     git commit --no-edit --quiet
>> +                     $DRY git add -u
>> +                     $DRY git commit --no-edit --quiet
>>               fi
>>       fi
>>
>> -     git commit --amend -s --no-edit
>> +     $DRY git commit --amend -s --no-edit
>>       if [ -n "$message_id" ]; then
>> -             dim_commit_add_tag "Link: https://patchwork.freedesktop.org/patch/msgid/$message_id"
>> +             $DRY dim_commit_add_tag "Link: https://patchwork.freedesktop.org/patch/msgid/$message_id"
>>       fi
>
> --
> Jani Nikula, Intel Open Source Technology Center



-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch


More information about the dim-tools mailing list