From nobody Tue Mar 28 08:39:32 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Pm35c0j7Wz41bjf for ; Tue, 28 Mar 2023 08:39:48 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pm35b1L7Tz41kZ for ; Tue, 28 Mar 2023 08:39:47 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=k1ZYDjJW; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2a00:1450:4864:20::52c) smtp.mailfrom=wlosh@bsdimp.com; dmarc=none Received: by mail-ed1-x52c.google.com with SMTP id i5so46586798eda.0 for ; Tue, 28 Mar 2023 01:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; t=1679992783; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=XGJPCqVIEBJHySo1gQ+noYX37RvJQ5bDb7G5VAuuNLU=; b=k1ZYDjJWTzu63Bs06+RLZ42756i8VagYWx2NXkp/vv5uyrbEdaoEnPoW5SVnP8UPhv 9sACuM1N2HhvGS01WfuHJgFCl85yXjWnO+qA1ICE/NdnVLwSXIv0dBKr75qBpVrki+/Y bH/HU/DR4WlTzq3JBRNEPGcAf8303W1PKMPxNmYeD16SFi4fzwIxSlXqR8bcobbnX8nC OeaDvOlDiMbd3aiApJSo7de3rXvgnPcQkft3yFWe4vZGApNGIfc7Xf9diz/ZfiNJkdtS D9MRYZhmFP6jcB1AkGsjtIqxmvSCQUUWk3e3Sr9yY2KV8pl0KkuDrwLhJikmgHBRUpCT V5rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679992783; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XGJPCqVIEBJHySo1gQ+noYX37RvJQ5bDb7G5VAuuNLU=; b=PpSgxPUZHAXrFENmNnzRbIyhY5uqTx2VVBanSR4/e0Hh/hfp+HVlBzW9CxPtSQAOSF TMv64aI4rZ1om6922Yiz5ZTejomEqibyncOms1aNH+/XYw7shG5ls7/dVChJWKFCpYX8 DDLaLnNsGJhLlGw2oeLUJNgk0xPI6KplpaAz59WagUY5aoj3NXRdxlOSCqw8gGdUcxE5 zoya6HGWSAeJ3RleWsr5B/oxMTyl5Q1kIYgrqT8llZ8ORzIaih5WPSuE5ONwLzJyKEm6 Uowee4ZSd3+yaE1GlvzeHlMTeM6LVvXATr3VRwoIwik1Tmt86MWvlliEpTX7hgTTznIL iDpA== X-Gm-Message-State: AAQBX9cc71sQOHeIRr63YM0Kt2Y3aNT20lS3J9NdUcnqQkJjcM5uJw7A QzTbEoM2R8pLJcEcFEMGgL4Z0ultworVxXJUn+mTSeo8xmgxcFhW5GA= X-Google-Smtp-Source: AKy350aPPosBgPaN+OAb4wCh2ne/DYcpPG++6prXKBWvIcHIQ8/zEL2uUZlLBxy8KNUJIVXtQvoArCeCwigWWZxpDCs= X-Received: by 2002:a50:8712:0:b0:4fa:123:3b32 with SMTP id i18-20020a508712000000b004fa01233b32mr7484733edb.7.1679992783209; Tue, 28 Mar 2023 01:39:43 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Tue, 28 Mar 2023 10:39:32 +0200 Message-ID: Subject: Re: what's the Correct git update method keeping local changes To: FreeBSD Hackers Content-Type: multipart/alternative; boundary="0000000000001195ca05f7f1cd27" X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52c:from]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MIME_TRACE(0.00)[0:+,1:+,2:~]; R_SPF_NA(0.00)[no SPF record]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[bsdimp.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4Pm35b1L7Tz41kZ X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --0000000000001195ca05f7f1cd27 Content-Type: text/plain; charset="UTF-8" On Tue, Mar 28, 2023, 5:19 AM void wrote: > Hello hackers@ > > I looked in the porters and developers handbooks and couldn't find > reference > to a Correct method of working with git, poudriere, the ports tree and > local changes for a use case like mine. > I use the rebase workflow for pending ports commit work. Each change is a commit that I'm "curating" for later. I update main and then rebase -i in case there is anything weird I need to do. This is true for changes I get from bz or stuff I'm working on. This aversion dates back to mercurial patch queues / stash screwing me over a few times 15 or 20 years ago.. Warner Right now my workflow looks like this: > > 1. apply patch either with patch -p0 < patchfile or git apply from the > top of the ports tree > 2. git stash > 3. poudriere ports -u -q > 4. git stash pop > 5. run the poudriere build > > then, subsequent poudriere builds need steps 2-5 repeated. > > I'm wary of git merge/apply because i'm not a dev and so don't want to push > changes. but I want to update the ports tree for poudriere with local > changes > keeping them local. > > What's the best way? > -- > > --0000000000001195ca05f7f1cd27 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, Mar 28, 2023, 5:19 AM void <void@f-m.fm> wrote:
Hello hackers@

I looked in the porters and developers handbooks and couldn't find refe= rence
to a Correct method of working with git, poudriere, the ports tree and
local changes for a use case like mine.

I use the rebase workflow for pendin= g ports commit work. Each change is a commit that I'm "curating&qu= ot; for later. I update main and then rebase -i in case there is anything w= eird I need to do.

This = is true for changes I get from bz or stuff I'm working on.

This aversion dates back to mercuria= l patch queues / stash screwing me over a few times 15 or 20 years ago..=C2= =A0

Warner

Right now my workflow looks like this:

1. apply patch either with patch -p0 < patchfile or git apply from the <= br> =C2=A0 =C2=A0 top of the ports tree
2. git stash
3. poudriere ports -u -q
4. git stash pop
5. run the poudriere build

then, subsequent poudriere builds need steps 2-5 repeated.

I'm wary of git merge/apply because i'm not a dev and so don't = want to push
changes. but I want to update the ports tree for poudriere with local chang= es
keeping them local.

What's the best way?
--

--0000000000001195ca05f7f1cd27--