all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-attach should detect git also higher in the filesystem
@ 2013-08-05 21:58 Thomas Koch
  2013-08-31 14:05 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Koch @ 2013-08-05 21:58 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: John Wiegley

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-31 14:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-05 21:58 org-attach should detect git also higher in the filesystem Thomas Koch
2013-08-31 14:05 ` Carsten Dominik

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.