From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Tip: git commit-graph Date: Thu, 12 Oct 2023 00:53:55 +0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33779"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?UTF-8?Q?Gerd_M=C3=B6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 11 19:55:13 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qqdQO-0008dK-Mm for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Oct 2023 19:55:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqdPP-0008PK-7f; Wed, 11 Oct 2023 13:54:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqdPN-0008P6-EX for emacs-devel@gnu.org; Wed, 11 Oct 2023 13:54:09 -0400 Original-Received: from mail-vs1-xe2d.google.com ([2607:f8b0:4864:20::e2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qqdPL-0005wf-PZ for emacs-devel@gnu.org; Wed, 11 Oct 2023 13:54:09 -0400 Original-Received: by mail-vs1-xe2d.google.com with SMTP id ada2fe7eead31-4527d65354bso57605137.0 for ; Wed, 11 Oct 2023 10:54:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697046846; x=1697651646; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=hZ4BmO7X5j9P6oA5RD2Mx3sw/CIsKLw6TLw7AJPH18c=; b=QORoGhRl6ihdYMoFe38z28nwtHX6iPY8c3EE6rZG6h6AFh/05PcuhbDQDQStC4BYk4 AU75bLyxH1kzezzBb3I/gr35VLsXos7SwzzZMFusc0wUbgUHG0/1t39vRloNMKrzXqnX HL+U9KOLpUlx42hm+qAE4baf9s+vMKiDLxHBIwD7ymph/lbqgIPynFGr46aD914mTwpf oKJiPcokI9okY5lnIvDUobdxGk0Zw8z4uB4mnqnw8h7o7Dq+xlzYW9CHkWV5/N+o4w+C KYeVLYp45wjSf/VDUVUhwsV1wDj7L2+uO9QfWrR4vkOzecTuONPhMBCp+ld6t/pNyiFH KadA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697046846; x=1697651646; h=content-transfer-encoding:cc: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=hZ4BmO7X5j9P6oA5RD2Mx3sw/CIsKLw6TLw7AJPH18c=; b=cnYrJNwIlxChqR5oFs0vL3hxreuUYkVsAen/XoGoF/MCxVNOSPG/B2u6LQ031pFBQD pb1HtgcRi5tv2PMtBr/b7efoYYyVWZR162hTVuanzU1eS0Y/Me2msksKor5tgNXFCHRc lvN6QY1b6+a4P0SP6z36O1fMFrPbT012ammr4j5v03YF3Dxc6uGdKosu35+Ohq+e5e+i yCJUBAake76jiUF7zsBJ/I2OqR8C4/8blRDIUXkMuVpIgZ7Ko1KgnhnuMA8Kb8ZmL0nm Fw0ZeDMUtFQpxTkCoNsrCEocdak6MSojK4V3stGyhLMTXCigPdrtzDXic71jK1tuTdKu kqPA== X-Gm-Message-State: AOJu0YxRwVQEtjKMvHeY6fI90khbgjS7gfgvyWEbItOMkcIy5N2/gtPO 7CyLlF6orPP9GV1LI+Mm4au/OgxoT7ymXzWnZAw= X-Google-Smtp-Source: AGHT+IGkC0N58QOwTo2A5aWSMzhHKkKnjchal/19gD2e6yS+hWW994GmqSOCkk+WCu2OUVO693rfcZlrT2gwWVMZTKM= X-Received: by 2002:a05:6102:415:b0:44d:e70d:8a4b with SMTP id d21-20020a056102041500b0044de70d8a4bmr18086785vsq.8.1697046846475; Wed, 11 Oct 2023 10:54:06 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::e2d; envelope-from=yurivkhan@gmail.com; helo=mail-vs1-xe2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311412 Archived-At: On Thu, 12 Oct 2023 at 00:25, Gerd M=C3=B6llmann = wrote: > >> A tip for people with slow machines, > >> > >> https://devblogs.microsoft.com/devops/updates-to-the-git-commit-graph-= feature/ > >> > >> This speeds up topological sorting of git commits, which is, for > >> instance, used in git log --graph, which in turn is default in Magit. > > > > This seems to have been turned on by default 4 years ago and present > > in two latest Ubuntu LTS releases (20.04 and 22.04) and two latest > > Debian stables (bullseye and bookworm), so=E2=80=A6 which categories of= Git > > users would not already have it by now? > > I'm not sure what you mean by activated. > > Do you mean that on these systems, .git/objects/info/callgraphs is > always generated? I'm no macOS 14.0, BTW, and I'm pretty sure that it > wasn't generated, because of the speed difference I observe. Hm. The article says > In the recently released Git version 2.24.0, the commit-graph is enabled = by default! but what it actually seems to mean is that 2.24 changes the defaults for two configuration variables to =E2=80=98true=E2=80=99: * =E2=80=98core.commitGraph=E2=80=99 which instructs Git to *use* the file = if present; and * =E2=80=98gc.writeCommitGraph=E2=80=99 which instructs it to *create or up= date* the file on every invocation of =E2=80=98git gc=E2=80=99. So this answers my question: Users who have not run =E2=80=98git gc=E2=80= =99 since 2019, or =E2=80=98git commit-graph write=E2=80=99 ever, will not already ha= ve a serialized commit graph.