From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id SGyRI7bxDWVAJwEA9RJhRA:P1 (envelope-from ) for ; Fri, 22 Sep 2023 21:57:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id SGyRI7bxDWVAJwEA9RJhRA (envelope-from ) for ; Fri, 22 Sep 2023 21:57:42 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4EFDB39D27 for ; Fri, 22 Sep 2023 21:57:42 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=djJDX2IR; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695412662; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jQ0830O5UEL4hwHN4zqFSZOX6G5DUHcz6WnL+ilDspE=; b=Cr1oUKEaZEOD4woMaA9WEpeh1QLDpg6W+RMrqcthpckV+DyKuMx94wll5JGlzQnNQtSgNE FK8eF1mlaIuK1WkLcig0wglH4HTXeZpNqz8pUUVGeUy4BfAKnt6K9DQREYI5xkBxW70YlB e8gMI0g7cH9R9j2xThMQK+t4PTMKMh6E20UZHiEVlLhwkol0x1NILgTwkxwtU31y9uA8Y8 bbuuy5urQbcvhD59ll1PXKXGbH8ocjwbWwpxav0sIE+XdMsqBCnujbdGZS2cmmGnr0rmq+ 73N5OK6x64cROloeAeW7dOf1deIHSdZFrJGPNsQva+zomxF1T6GBCOg2eIkZFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695412662; a=rsa-sha256; cv=none; b=XOEcgHW6P96TdYchEwD//KrzYvErny/O9DcjX7QvhRnfWT6eyeasuUYsoRV1dTppFvt1/t JwXaFH7ki9B5Tlm+pv+cQf06+3phMPFqMwtQ3mERl6Nu3+kDTtxSibHHtKwrE3h5JE5BKS vxId4b87KE19WyYo1GkaXnaK2DpD0MypQUvgzygrMbPt4y0K/yZ4CHVSDoR40V/idgL0CN gddlopNoNHHTYV8yppdXhN0MxH0WwPTdPh/kBc1iIB95s3fhjUyhcTGzsZf3NM3q8bfoDk bz9m+amvZ1tpomweWHAKoq+/dpaA8wosMN/kP/Cq2gVwjD+AktC0fk8jaelORw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=djJDX2IR; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjmGe-0002md-Vp; Fri, 22 Sep 2023 15:56:49 -0400 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 1qjmGc-0002m7-Uv for emacs-orgmode@gnu.org; Fri, 22 Sep 2023 15:56:46 -0400 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjmGb-0001nC-Cz for emacs-orgmode@gnu.org; Fri, 22 Sep 2023 15:56:46 -0400 Received: by mail-qk1-x744.google.com with SMTP id af79cd13be357-77406094bc3so46695685a.1 for ; Fri, 22 Sep 2023 12:56:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695412602; x=1696017402; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=jQ0830O5UEL4hwHN4zqFSZOX6G5DUHcz6WnL+ilDspE=; b=djJDX2IRb7BNzCnCC0ziIS1Q6/Hlfx/2qEjacCTVBZzkGShcZb3ef52WpWWe78TIeO J/ldcULpJJZdX+UDACQe7Sb7ShUTdXm1i0MlvQllo47pmA48eFXBRm5UeUnGPXSc1MXp 5y2OClIVEs9TQZuauTqdxGrAQvdRG258bM1mKTLtjsR0LBGptpdQ128wOfNVOxNwVMkx Ejxr70+I9ZyKGJQybnjm5s6II5dthiD1Ukz9+Lcu0J50v+3LGa9ASDtpD9WfJWuklnA2 4g2J+bN4LcP7pSwhmlfDy93aI7hYKyS7uJg6OLklLrq44edAe12587O+o8m8WQThnaMo aQ0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695412602; x=1696017402; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jQ0830O5UEL4hwHN4zqFSZOX6G5DUHcz6WnL+ilDspE=; b=fbgu0ETXpTjxzRujW3mAt9d2o7bku+lz2MWMnQJaAgICh0bF4eGeuIoBRN8zif0WIt b36ZRbzn+BoJjm4Ofk3UBwmsdcGUFrKlHaG0XJb2y/Yg+gMDTK/dZQyyzWLCi99UQDK9 irL04IjahMS5Wm28ihD2Yaszn3rfIdB+fb6IkYA6NFBK4KPgyYUz1cucqe5PbSb8TZA9 Qclt/+X4C6HyACKTYx4Ewu7TkCagV57zA57ULvdijrLnyW7bu8xlwhYcUKGt2PrQd5Uz 9r3uka/JwXRN5nQtMrr4RQpJfutnrcVoOZ6jpIGRSOXvGIN7a6kFjD+IHHnUCsfC/KeW C4xA== X-Gm-Message-State: AOJu0Yxxt6qbGzova7IQ/siTLBNFwmagDIcp4aifpE7LmTCnaT4RI/MD 88KZmd3HOVwYOsDRhkRnTQk4qyCNZ1O1Tw== X-Google-Smtp-Source: AGHT+IEO5vwhYi0vUcdu+ud2GP505VaEtkzxwx/4AwPkGZREIGq8JJHWWkxe3ZsBEv9pKsAflIS3Vg== X-Received: by 2002:a05:6214:f62:b0:651:675b:37f9 with SMTP id iy2-20020a0562140f6200b00651675b37f9mr338740qvb.1.1695412602425; Fri, 22 Sep 2023 12:56:42 -0700 (PDT) Received: from fig.gmail.com ([146.70.198.175]) by smtp.gmail.com with ESMTPSA id d7-20020a0ce447000000b00655e3e86ad7sm1696964qvm.6.2023.09.22.12.56.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 12:56:42 -0700 (PDT) From: Suhail Singh To: emacs-orgmode@gnu.org Subject: Re: [FR] Make notion of "modification time" configurable during publishing In-Reply-To: (Ihor Radchenko's message of "Fri, 22 Sep 2023 11:40:52 +0200") References: Date: Fri, 22 Sep 2023 15:56:37 -0400 Message-ID: <874jjmm16y.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::744; envelope-from=suhailsingh247@gmail.com; helo=mail-qk1-x744.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -7.35 X-Migadu-Spam-Score: -7.35 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Queue-Id: 4EFDB39D27 X-TUID: K9fsDiEx/9uW Ihor Radchenko writes: > I am a bit confused. What do you mean by "git author date" and "git > commit date"? In the output of `git log --pretty=fuller`, there is AuthorDate which is distinct from CommitDate. In case unfamiliar, an elaboration on the distinction: . > I think that we should use an alternative approach. Both "git time" and > "fs time" are only an approximation. The true decision to re-publish an > article should be triggered by article text being modified. So, we may > better decide based on the file text hash, not the modification times. For it to work, the "file text hash" would have to also take into account the "file text hash" of included files, or the decision to re-publish would have to be predicated on the hash of included files as well. I.e., the equivalent of this logic in org-publish-cache-file-needs-publishing : (let ((mtime (org-publish-cache-mtime-of-src filename))) (or (time-less-p pstamp mtime) (cl-some (lambda (ct) (time-less-p mtime ct)) included-files-mtime))) But assuming the existence of equivalent logic, yes something like a file hash would work. In fact, at least in the case of git, the VCS could even be queried for it (via git hash-object). -- Suhail