From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gFjQKReLFmBDVgAA0tVLHw (envelope-from ) for ; Sun, 31 Jan 2021 10:48:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YCaQJReLFmCeUwAAB5/wlQ (envelope-from ) for ; Sun, 31 Jan 2021 10:48:55 +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 AD5E09404C2 for ; Sun, 31 Jan 2021 10:48:54 +0000 (UTC) Received: from localhost ([::1]:53726 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6AHk-0002ZF-3Q for larch@yhetil.org; Sun, 31 Jan 2021 05:48:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6AHH-0002Yz-4y for emacs-orgmode@gnu.org; Sun, 31 Jan 2021 05:48:23 -0500 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:42212) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6AHD-0003fe-6G for emacs-orgmode@gnu.org; Sun, 31 Jan 2021 05:48:22 -0500 Received: by mail-pf1-x42d.google.com with SMTP id w18so9560684pfu.9 for ; Sun, 31 Jan 2021 02:48:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=Q0uWaFyTxU6unAUOfRRj/xVIyqoMTKoe+zwXicH14OU=; b=ksv8AkQj0lGkgRRTGOyZpm4nNjukxD3K8oD7sajzrJJR48QneljZ5DdMaL5WmWtyjC VayhW/4GBS8jKMIjqMPmZar8DyaQ5834OUxV4gWoJ08D+FufYXWcmJV3CKxoLII88XCP 9k69cszkBgl8tDa97kUjM9W1FxdIm4WpF0grf3heE81XgOHLHMdaxt0a2D5R1dQEtqUV Q/ceY73IroyhLGsNs29jl1SDHYYMdl5zx4lPjqA4a9q0Yr0bJvR0yNlXIKj5yQRTC2WE Jm2oce0kfT+oT+7J0XNbFDkXXU8hC1wmG+WRaM0SzPQwlYGFH5AtZStJYFZp+0CkuUJE 4cGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=Q0uWaFyTxU6unAUOfRRj/xVIyqoMTKoe+zwXicH14OU=; b=RWG/atfmYUXaLoqjgYK+xkG8Df9qyOmzwmEKECa2XNa0AyA7r0kkYufpcEMv39SpOT qB8q9Hu2lQIaGNpI42FAXtqL4JIrFUnuJTJHnuC6NUmY8zqBK4PeFXrYM0j/F/k4iVxx GtBsathfOqITNwZ38UQRr4uKXkG83CxBRgdNFs/kMcyNnmnUIXDy3RUZVlJ/Dv6G1gL+ t1zTc4h8ccLTqq4GL6HWn3GFbJ+PcoEmHnJSQtlD2XiSnMOsKxwhxV6SUio2Zt0aYJlL vk8ZhXVTI4rL+nayOHA/43kup/naKbF84tD+1ldBnd4T8NXCAvJb9NefzV6SIe4h8rFW dsDw== X-Gm-Message-State: AOAM533dy+u8E3lhmvoYrP/bPwHkHD4i0N+SW67HjUPUrzG73X7PHmQD SvS7SivdL+/vkM55rXu3E48= X-Google-Smtp-Source: ABdhPJy0VdEtnOmnDI2Nf3b6PP7wDb0CrKa4lgpvqrsuSUYVXnupKnsLY5XBaSqzSrAv7QNkfG0t4A== X-Received: by 2002:a63:1f54:: with SMTP id q20mr12434883pgm.135.1612090096455; Sun, 31 Jan 2021 02:48:16 -0800 (PST) Received: from localhost ([192.161.60.130]) by smtp.gmail.com with ESMTPSA id k1sm7604645pgq.87.2021.01.31.02.48.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Jan 2021 02:48:15 -0800 (PST) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Subject: Re: org-attach-git don't automatically commit changes In-Reply-To: <87r1m1o0vz.fsf@posteo.net> References: <87czxn91dj.fsf@posteo.net> <87a6sr6mcq.fsf@localhost> <8735yiv926.fsf@posteo.net> <87wnvt4w62.fsf@localhost> <87r1m1o0vz.fsf@posteo.net> Date: Sun, 31 Jan 2021 18:52:23 +0800 Message-ID: <87k0rt4bvc.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=yantar92@gmail.com; helo=mail-pf1-x42d.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.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 X-Migadu-Spam-Score: -2.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=ksv8AkQj; dmarc=pass (policy=none) header.from=gmail.com; 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: AD5E09404C2 X-Spam-Score: -2.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: hQTX4DV0z+l4 Juan Manuel Mac=C3=ADas writes: > But if I evaluate this, I get an 'incomplete' path: I think you misunderstood how org-attach-git works. org-attach-git is: ;; An extension to org-attach. If `org-attach-id-dir' is initialized ;; as a Git repository, then org-attach-git will automatically commit ;; changes when it sees them. Requires git-annex. So, it is not designed to work when your actual attachment directory is a git repo, but rather when org-attach-id-dir is a git repo (initialised manually). The other thing is that `org-attach-id-dir' makes much less sense from the time :DIR: property was introduced. So, I believe that org-attach-git should be updated. Probably, handling attachment dirs as individual git repos can be one of the ways to upgrade the current version. I guess, patches welcome. Best, Ihor