From owner-freebsd-current@freebsd.org Wed Dec 23 22:21:08 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 2C0244CD072 for ; Wed, 23 Dec 2020 22:21:08 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) (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 4D1SN32mKkz4Z5T for ; Wed, 23 Dec 2020 22:21:07 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-ot1-f47.google.com with SMTP id o11so399402ote.4 for ; Wed, 23 Dec 2020 14:21:07 -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=5tcCxDMTmAdWUja6t3nZ/OpXSXX26xNkq+IHG3EFm6o=; b=dbTSr4NR8fcOuQCFdMwc66UC+kdiMxt6VcJqbfO4dc/kfoI+PNwmFxpSvEui2+7D+4 6zgKzxu5HvxwBybZ8rC+bypfSYr7he2DW/ww9ikDaVDdc0oKfhh1lks2jLm+7OC/hpf9 M+cDzgUOxzRdHN1jDx4d01Xg9cQHs/U+YAcuh2VFwowHWZXPUbHf6sGAUDsMMiL9iTd8 9bOQ27UJ/4YmRAh3weJ/TGuQNm+uARvr+ZUzEFMySCxSp4aC1xAp3ntKUH9K8zneD0pM JXt/QtQgcCsTDUmDFJ6Okws5sU18ooNw4msvzdTlAKWHtlmMhv7BXwipB7Jx3j5dEe1S /OLw== X-Gm-Message-State: AOAM5305DK8Q1Rh90Epm/MyL44gmXhPWJvWRj1VIUz5S30udeUNVKMlo Np7xUT2GYBNO04ILsRb7Eu6sL7FuetsHRNdXMUoCdWfgkD4= X-Google-Smtp-Source: ABdhPJwiVmZnDftrskGaHNhNmoiJfCDbcu033UAA+0iMASoJ9RXDj6ynjC/4iFFLC7MlIhlnXyRbMlKs7zZMzJPJLoA= X-Received: by 2002:a05:6830:2413:: with SMTP id j19mr21750931ots.251.1608762066149; Wed, 23 Dec 2020 14:21:06 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Alan Somers Date: Wed, 23 Dec 2020 15:20:55 -0700 Message-ID: Subject: Re: referencing one commit in another for git To: Rick Macklem Cc: "freebsd-current@freebsd.org" X-Rspamd-Queue-Id: 4D1SN32mKkz4Z5T X-Spamd-Bar: - X-Spamd-Result: default: False [-1.92 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; RWL_MAILSPIKE_GOOD(0.00)[209.85.210.47:from]; RCPT_COUNT_TWO(0.00)[2]; FORGED_SENDER(0.30)[asomers@freebsd.org,asomers@gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[209.85.210.47:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[asomers@freebsd.org,asomers@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEFALL_USER(0.00)[asomers]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.08)[0.081]; 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)[freebsd.org]; SPAMHAUS_ZRD(0.00)[209.85.210.47:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.210.47:from]; R_DKIM_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] 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 22:21:08 -0000 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. -Alan