From owner-freebsd-current@freebsd.org Thu Dec 24 01:22:15 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 4059A4B1128 for ; Thu, 24 Dec 2020 01:22:15 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D1XP30g7zz4kNt; Thu, 24 Dec 2020 01:22:15 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 0156A6B72; Thu, 24 Dec 2020 01:22:14 +0000 (UTC) From: Jan Beich To: Warner Losh Cc: Alan Somers , Rick Macklem , FreeBSD Current Subject: Re: referencing one commit in another for git References: Date: Thu, 24 Dec 2020 02:22:11 +0100 In-Reply-To: (Warner Losh's message of "Wed, 23 Dec 2020 16:01:59 -0700") Message-ID: MIME-Version: 1.0 Content-Type: text/plain ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1608772935; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=94XavHsIMFFRPwLZP7qdP8LnAKKFKqxEcmeKYN2Q+jE=; b=TeEnViLHO9lA+fVHlNrxLw87adFK18+EJoU08wiZNvRO9geO8+ZxLFktY2FtwhFs9tjJhY SZvkf1k3dh9MJN6N8XpaaBL+AACQPQG/f1VKjpk1+QMXnQynrfqLYtwQIZGXAL4VyKN+N9 lWYWclNPShsiKmykWr3yqXJrFTGHseXRt8hNs0M8dajoRO3j0FK4YFCwIu1clrrwiUgr89 iHrAlJgXa1gOgqur8z4ZsdEgKXyKtwT1/2kBGANMFAZRZxApHpzBXp8lrtn0+jXt/zn+Gh 2pmGB2fNtJSL5cYwQZcc1tH/6IJfNNITgz5y9ROmBHttQqtVf2qDBhRcnb3aJw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1608772935; a=rsa-sha256; cv=none; b=aHjf91JWOLTjJhwziYP13GuS6feEgpzGFnTdLGGMrUNlR4kByqJJwj4G5qpyaQtMOv+PeX PN3u8HV9mtbFT2TU4rBvZ2GwUcXW/gEiMRvR97YYVIMklBH3JhPxcjVl+9GyemjauA6t72 utnlNOBQFnMUtnY61Rog+rwRhnN685yyD03ziAwtbk5ff/2gvrNECKxaNU9m3cSzaNCiSn sVfG0vegh5xNvJznl1rjgmMesH/79pnrbxdQ6PNp49jZQ6RRLK4TBOd5V0H/ov1BbJgDu9 1bho0ibCvanRzuFLK0ASXV0RvGGwzDjRUtzw7gSNl1eS541sV4q1MncRe6dClg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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: Thu, 24 Dec 2020 01:22:15 -0000 Warner Losh writes: > 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. Mercurial defaults to 12 digit abbreviation. Git abbreviates linux, freebsd-legacy, freebsd-ports repos on GitHub to 12 digit.