What about the version i sent to you (the code below is different from it)? - for me taht has worked...
-----Ursprüngliche Nachricht-----
Von: Houman Dunnil [mailto:[email protected]]
Gesendet: Montag, 6. April 2009 14:23
An: Berndl, Klaus
Cc: [email protected]
Betreff: Re: [ECB-list] How to enable file status icons for Git?
On Mon, Apr 6, 2009 at 3:46 PM, <[email protected]> wrote:
> Well, let me recapitulate:
>
> If you have a directory-tree <top-most-directory> version-managed by Git then only <top-most-directory> has a subdir .git but all other subdirs containing git-managed sourc-files not, right?
Correct.
One step further...
With the following method it works great for all files a Git directory, but I cannot browse directories in ECB that are not under Git control. It says "Lisp nesting exceeds `max-lisp-eval-depth'". Any clue?
(defun ecb-vc-dir-managed-by-GIT (directory)
(if (eq directory "/")
nil
(cond ((and (ecb-file-exists-p (concat directory "/.git/"))
(locate-library "vc-git"))
'GIT)
(t
(ecb-vc-dir-managed-by-GIT (concat directory "/../"))))))
------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.