From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Tip: git commit-graph Date: Wed, 11 Oct 2023 20:30:54 +0200 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="25252"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 11 20:32:06 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 1qqe05-0006Kb-5u for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Oct 2023 20:32:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqdz8-00032x-Js; Wed, 11 Oct 2023 14:31:06 -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 1qqdz2-00032V-KM for emacs-devel@gnu.org; Wed, 11 Oct 2023 14:31:00 -0400 Original-Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qqdz1-0000EP-4d for emacs-devel@gnu.org; Wed, 11 Oct 2023 14:31:00 -0400 Original-Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2bffc55af02so1366571fa.2 for ; Wed, 11 Oct 2023 11:30:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697049056; x=1697653856; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eBKVKJsJ/DKfZNo3M9Eo9HZR+21wt54t2paTXcSlGSc=; b=iSVCl0jQV5nhjhdqef4Z71xIjxDT26RoaXLc2rumTGv55YqBORJAnJgn5m3ogb1Hkz NwfdzfI28OAuEb0cEqEm4vsj5cFOltsI5nogkRob+e31DywzyKaOvNqhl2zInB23jqpX 2JyNoW15cR8GXgGizMgXGkb7AIOJMb4ykNhoyVLG1aINpnNC5ARdwp5yoWGHonapu3UM iFZDFjiLCcfQIdKWi7yboSA/yxkOBo7hK73wK85BqDezFUVG9CiSpIDO4QAQAcW0kvlL fpieUUcR753m8RPeM+aPwrucw0UHFDlAZwKBvE16Vzi6WK248whWS/7x5/aj5rihz5w+ 9YVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697049056; x=1697653856; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=eBKVKJsJ/DKfZNo3M9Eo9HZR+21wt54t2paTXcSlGSc=; b=f4PdFxA9g3FbEIM8BbUM+6aIV1Ye9lPrxJz8o7g9GcwCPH7+k2V6t7ClOzTKfC5ZeH yAamhm+K8JfDjHCvgFjrEkgzqzJL4H8UKhV/ZDU/VYXa2f5KJ1BlxK+sS5dYbCrNf7O5 OB2zZ5SUzTzIm0chB5RRRuLziccwHvxsFPM4SYO0qShNCB9DuvTU4H4iaYHCiRPfKIHr aVYYiSTU75pkuhxfBegAyg4ztEmJpFFmPepBtPjO6Q+0UcraxWeMpSpHp8R/LBj90M1B DIwXF6Cr0w7u4RRORHs3Bugj2H7lLICVsDTx9NOIUsSDEwDGFCF+k2gz0bDYKqhuBPz6 t/ew== X-Gm-Message-State: AOJu0YwCM7vxN8Rwz6nywaBgi9fyQ42IA+09JIIWM142rx48BR+4EIpz w5dO5qfg35WNW8kVA0s2l32KhmaQim0= X-Google-Smtp-Source: AGHT+IFPHoIGo95bHzxvLVJAdP4EwBIhl5HtIeni1UmtTDdHcvCXU9uX7S5mj4rOTbiBGbRRreqKJQ== X-Received: by 2002:a05:6512:10d5:b0:503:3890:ca3a with SMTP id k21-20020a05651210d500b005033890ca3amr21035066lfg.66.1697049056172; Wed, 11 Oct 2023 11:30:56 -0700 (PDT) Original-Received: from Pro.fritz.box (p4fe3a979.dip0.t-ipconnect.de. [79.227.169.121]) by smtp.gmail.com with ESMTPSA id n14-20020aa7c44e000000b005361fadef32sm9029292edr.23.2023.10.11.11.30.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 11:30:55 -0700 (PDT) In-Reply-To: (Yuri Khan's message of "Thu, 12 Oct 2023 00:53:55 +0700") Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=gerd.moellmann@gmail.com; helo=mail-lj1-x235.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:311415 Archived-At: Yuri Khan writes: >> 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 fil= e if present; and > * =E2=80=98gc.writeCommitGraph=E2=80=99 which instructs it to *create or = update* the > file on every invocation of =E2=80=98git gc=E2=80=99. In addition to that I've added git config --global fetch.writeCommitGraph true I think that's also from the article, not sure anymore. And the write I've done with git commit-graph write --reachable --changed-paths because somewhere else it was suggested that that helps with the log of single files. > 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 = have a > serialized commit graph. :-)