From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-attach should detect git also higher in the filesystem Date: Sat, 31 Aug 2013 16:05:22 +0200 Message-ID: <09688E5F-AF8A-4AA6-8B0C-EB5FAF4BFBEF@gmail.com> References: <4738097.ljaNXQUGza@x121e> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_961DDEED-3BDD-4F12-9239-82E56A897C7A" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFlnx-0004Wn-2R for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 10:05:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VFlno-00077w-HE for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 10:05:32 -0400 Received: from mail-ea0-x231.google.com ([2a00:1450:4013:c01::231]:47087) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VFlno-00077e-9E for emacs-orgmode@gnu.org; Sat, 31 Aug 2013 10:05:24 -0400 Received: by mail-ea0-f177.google.com with SMTP id f15so1432446eak.22 for ; Sat, 31 Aug 2013 07:05:23 -0700 (PDT) In-Reply-To: <4738097.ljaNXQUGza@x121e> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: thomas@koch.ro Cc: John Wiegley , emacs-orgmode@gnu.org --Apple-Mail=_961DDEED-3BDD-4F12-9239-82E56A897C7A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Thomas, I think this has been fixed today with=20 = http://orgmode.org/w/org-mode.git?p=3Dorg-mode.git;a=3Dcommit;h=3D2c38c3ac= c0b5d1cb3bb26f45829d711bb6f4009c Could you please check if this is correct? Thank you. - Carsten On 5.8.2013, at 23:58, Thomas Koch wrote: > Hi, >=20 > I tested org-attach with the org file being inside a git repo. I = observed that=20 > the auto-commit feature of org-attach seems to work only if the data = directory=20 > is the root of a git repo (detected by looking for a .git folder in = the data=20 > folder). >=20 > I'd like however to have the org file in the git repo too and the data = folder=20 > being a sub-folder of the git repo. Actually I'd also like to use = git-annex=20 > here. >=20 > Some options of git rev-parse might be helpful here instead of coding = the repo=20 > detection check by hand in elisp:=20 >=20 > --show-toplevel > Show the absolute path of the top-level directory. >=20 > --is-inside-work-tree > When the current working directory is inside the work tree = of the=20 > repository print "true", otherwise "false". >=20 > What do you think? >=20 > Regards, >=20 > Thomas Koch, http://www.koch.ro >=20 --Apple-Mail=_961DDEED-3BDD-4F12-9239-82E56A897C7A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi = Thomas,

I think this has been fixed today = with 


Could you please check if this is = correct?

Thank you.

- = Carsten

On 5.8.2013, at 23:58, Thomas Koch = <thomas@koch.ro> = wrote:

Hi,

I tested org-attach with the org file being = inside a git repo. I observed that
the auto-commit feature of = org-attach seems to work only if the data directory
is the root of a = git repo (detected by looking for a .git folder in the data =
folder).

I'd like however to have the org file in the git = repo too and the data folder
being a sub-folder of the git repo. = Actually I'd also like to use git-annex
here.

Some options of = git rev-parse might be helpful here instead of coding the repo =
detection check by hand in elisp:

--show-toplevel
=           Show the = absolute path of the top-level = directory.

--is-inside-work-tree
=           When the = current working directory is inside the work tree of the
repository = print "true", otherwise "false".

What do you = think?

Regards,

Thomas Koch, http://www.koch.ro


= --Apple-Mail=_961DDEED-3BDD-4F12-9239-82E56A897C7A--