From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753264AbdHDRoh (ORCPT ); Fri, 4 Aug 2017 13:44:37 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:50809 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752890AbdHDRoe (ORCPT ); Fri, 4 Aug 2017 13:44:34 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=GdLm6r6O7Q2pf6GT4mlYawV9/CalOX5w LdzLLrBtPhB5tFiH9a5xNs8l45ltKmswLYyrIh1FpQBmpQYNm7hURzGcj0gYamUu zxaWC99TCE7AtGKsqIqdl5mMqYStx6T292JF+V+E3x4zVhBrHnu71X8P16NNiVrg n7OnCtfsQlI= From: Junio C Hamano To: Linus Torvalds Cc: Stephen Rothwell , Darren Hart , Linux-Next Mailing List , Linux Kernel Mailing List , "Gustavo A. R. Silva" , Andy Shevchenko , Dan Carpenter Subject: Re: linux-next: Signed-off-by missing for commit in the drivers-x86 tree References: <20170803063743.1d50a5d2@canb.auug.org.au> <20170802235740.GB27974@fury> <20170803102810.37f7c6b0@canb.auug.org.au> Date: Fri, 04 Aug 2017 10:44:31 -0700 In-Reply-To: (Linus Torvalds's message of "Wed, 2 Aug 2017 18:06:20 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 931060C6-793C-11E7-B19B-9D2B0D78B957-77302942!pb-smtp2.pobox.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds writes: > On Wed, Aug 2, 2017 at 5:28 PM, Stephen Rothwell wrote: >> >> I would say that if you rebase someone's commit(s), then you are on the >> "patch's delivery path" and so should add a Signed-off-by tag. > > Yeah, I agree. Rebasing really is pretty much the exact same thing as > applying a patch. > >> "git rebase" does have a "--signoff" option. > > I think you end up signing off twice using that. I don't think it's > smart enough to say "oh, you already did it once". Git avoids duplication only when your SoB appears as the last existing one, so that we can capture a flow of a patch which you originally signed off, picked up and tweaked further by somebody else, which comes back to you and you sign it off again. We may drop yours even when yours is not the last in the existing chain, but that would be a bug; at least the above is what we try to do. > And in general, you simply should never rebase commits that have > already been publicized. And the fact that you didn't commit them in > the first place definitely means that they've been public somewhere. > > So I would definitely suggest against the "git rebase --signoff" > model, even if git were to do the "right thing". It's simply > fundamentally the wrong thing to do. When those involved are using push/pull as a replacement for e-mailed patch exchange, then such a workflow should be OK. There needs to be a shared understanding that the branch(es) used for such exchange are unstable and should not be built directly on to be merged, of course.