From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YJXOIt7bFmHJ6AAAgWs5BA (envelope-from ) for ; Fri, 13 Aug 2021 22:53:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ZmRWHt7bFmGNAgAA1q6Kng (envelope-from ) for ; Fri, 13 Aug 2021 20:53:50 +0000 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 E1FB2183EE for ; Fri, 13 Aug 2021 22:53:49 +0200 (CEST) Received: from localhost ([::1]:37944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEeBY-0002wx-WE for larch@yhetil.org; Fri, 13 Aug 2021 16:53:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEeB0-0002u4-M5 for emacs-orgmode@gnu.org; Fri, 13 Aug 2021 16:53:15 -0400 Received: from mout02.posteo.de ([185.67.36.66]:42561) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEeAv-0004vt-NN for emacs-orgmode@gnu.org; Fri, 13 Aug 2021 16:53:14 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 7776F240101 for ; Fri, 13 Aug 2021 22:53:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628887987; bh=/yaVCwgw4VHTo/IEOoauJ0BlMGYi2yXrbVSQM79jf6I=; h=From:To:Cc:Subject:Date:From; b=PoxjsrvEPN2fi5J7iPFiuJRYyr6OWrQTfTaAsJ5YHVNlEMjb40zqVa+M82KmCOkia 081/0gXgCDAcY5U7KNw5RA0rBSZaSRgrobr/B7y7uMSpbtW+LAdrysL0tGgx/2mb/v 3NZQoliuh+2NBxLKq8IN5vqG3D4OQQkrSzZ6CkL+hTcq0NTS9Ds2d8IUsoxOg6Rj7L WjXUHmZjpNhBMMfTMzLRRiJdWmdTMzIa+a4sqrMMUXjqT994wgYRH4TtCr3U9RSswT gZPIwP/kfy7pS6ChpauPwNHDLbRAys8PHiaD8oQrshOTZl5Tu8SW/+K13QLNYEo26j 5YGimW9Homf0w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GmbNz0078z9rxG; Fri, 13 Aug 2021 22:53:06 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ken Mankoff Subject: Re: Org + git branches for derived files References: <87czqh5gt1.fsf@gmail.com> Date: Fri, 13 Aug 2021 20:53:06 +0000 In-Reply-To: <87czqh5gt1.fsf@gmail.com> (Ken Mankoff's message of "Fri, 13 Aug 2021 11:40:42 -0700") Message-ID: <87bl616p8t.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628888030; h=from:from:sender:sender: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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aF89AaZSMAl3WtInd6whFxJrx5AlM6F3P4eIrdXdJqU=; b=FutJw5kTdH4YKAPN0cU5GOdHencSxfgNyPxQU8yeL5j1KP1F+PgjDZ9r6MJkSyLwkPJTCI dYi5E6xchZH3txKg7sEPng4mhvtRV2QZwMAE2V7QlxjLcvb2AOHmYHzBY29TQcTKZPE1iy 0dcrNshC6SQ+t+NW867BalO9JAAk6npee8zxAk8aEAiFX3/eIi0O+j8InCholpCSMXWQps 5/fk9XJapAPbw63ID7zLsSRW7jvxzefq1CJABZMepYnPJqJnAJhzGIItIJzGRGGpWs7gwU SJXMkns2I3D6x8/whe9/fxsY2Tp7KZetcEL2W0eLS7M8VF02iFfehB0PZIC4og== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628888030; a=rsa-sha256; cv=none; b=Wt44B1+uIpvFTqyM620KF2ItcL48UJNaxMBYKKKU/zAN+D4SiPi5SeKxxS1jJkAUyWOzPc 3uYrz5bgStYf51lZNk5844XYPAy0p2eRTk4PMyOtKSkCE66WLuR1HM/DHiSMcjmq40u1uZ NoyPLFGZvVL+adFfe+qhEuewUjLBQKCSTnze0lwjBmY/ejAG0hmHceoCnUFda8DG367/xC s7RIlr3TOkNTDBjytzVFw+ALD15i6BQoqdxOjVZYuKiNwCedHokz0bxGnbrE0h/BDng6mJ HSzBVZ/zNukGBJ4Z+aqgxkV97w3VOi2ymsx1xpATQtVI9Qs4RHCJTkWvca9MDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PoxjsrvE; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=PoxjsrvE; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: E1FB2183EE X-Spam-Score: -3.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: UNNLoNvsrx3i Hi Ken, Ken Mankoff writes: > I'd like to keep derivative products (the LaTeX output, the final PDF, > etc.) available in Git, but not commit those changes each time I > change the Org file. Perhaps git-annex as appropriate for this, but > seems over-kill. > > Is there some way to mostly-seamlessly commit the LaTeX and/or PDF > and/or other files to their own git branches but in a way that > overwrites the history of that branch, so that a small Org file that > generates a big binary PDF does not pollute the git tree? There are probably better solutions, but maybe this could help you: use org-publish (which also works when the output is LaTeX/PDF, and not only with HTML). See https://orgmode.org/manual/Publishing.html You should have to define a new publishing project and declare a directory for the PDFs derivatives, applying a value to :publishing-directory, and configure in this directory a second git repository, only for PDFs. The value of :publishing-function keyword should be `org-latex-publish-to-pdf'. Best regards, Juan Manuel