From owner-freebsd-current@freebsd.org Wed Dec 23 23:02:13 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 361614CDD3E for ; Wed, 23 Dec 2020 23:02:13 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) (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 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D1THS1f1rz4c3F for ; Wed, 23 Dec 2020 23:02:11 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72d.google.com with SMTP id b64so782280qkc.12 for ; Wed, 23 Dec 2020 15:02:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J8lf2x5SYGiODC2SPLdUYBwtce658Xjdi/EJpLbG/gE=; b=GjhXqSNEzxNuL0mueNXyslM02xfy6+CawtjT+PPYimkkn/ivPltOU8zp7JvT6m3m+a peiOtUj1REGadjnnw578vaki2Ss1yI9YFF0X1YIlYQVhDAt00mRdytVY2XM0DGkhSETa hY8chjML93tkfinIifz0C3gZkAUSEAzWn63PDVlS0FM4dCErA4h5J6BAt1QLD9xQxZS3 lza09DsPSWKNhztbBSVGkK3CrIUPcap+BOjK8zdqWeqvlvvVl5fT7atqbFZOPG/FlJ5U HYiMF41LD1HRTTR6pzs1vl4gUXMotM1xSmVv9/voRZRqBFuSXjCz6U9hH+fIL43Way/o JdYg== X-Gm-Message-State: AOAM532X/69URVUDLM61w15BDe0V2eLdLxvqid0Kx22rrX6KPNC6WpoG EfCunyR7QpWhCoKKAdCQitak5ryY83NkftcmJxxAXw== X-Google-Smtp-Source: ABdhPJwbYcYQUlPyFRR1lzct2Cntta2r7wHZcMpUlJXYD8XhdzW9SCE2dW12sbxoXEDUoIntI5PTmdVQuX2nVBzWi+o= X-Received: by 2002:a37:a614:: with SMTP id p20mr28034885qke.359.1608764531265; Wed, 23 Dec 2020 15:02:11 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Wed, 23 Dec 2020 16:01:59 -0700 Message-ID: Subject: Re: referencing one commit in another for git To: Alan Somers Cc: Rick Macklem , FreeBSD Current X-Rspamd-Queue-Id: 4D1THS1f1rz4c3F X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.39 / 15.00]; ARC_NA(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::72d:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-0.39)[-0.393]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72d:from]; R_SPF_NA(0.00)[no SPF record]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::72d:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2020 23:02:13 -0000 On Wed, Dec 23, 2020, 3:21 PM Alan Somers wrote: > On Wed, Dec 23, 2020 at 3:16 PM Rick Macklem wrote: > > > Hi, > > > > So I just did my first git commit. Pretty scary, but it looks ok. > > > > Now, how do I reference one commit in another related > > commit's log? > > > > By the long winded hash or ?? > > > > I'm not sure if I should ask here or on the git mailing list, > > but I figured this isn't a technical git question... > > > > Thanks for any help with this, rick > > > > Yeah, you should use the full hash. For temporary references, like during > a code review, you can use the first "several" digits of the hash. For a > project of FreeBSD's size, "several" is probably 11-13. But in permanent > contexts, like commit logs, you should use the full hash. When somebody > views the commit on a platform like Github, Github will automatically turn > it into a hyperlink, and display only the first "several" digits. > For MFCs we are recommending the first 11. I think this will likely suffice and matches the git client behavior. Warner -Alan > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >