Houman Dunnil | 5 Apr 2009 14:53
Picon

How to enable file status icons for Git?

Hi folks,

I have installed the ECB and it works like a charm. The only thing
that I cannot figure out is to enable status icons for Git files, it
works fine for Subversion but I don't see any icon for Git files. What
should I do in order to get them enabled?

Thanks in advance,

------------------------------------------------------------------------------
bread | 5 Apr 2009 18:13
Picon

[ECB] Emacs hangs after ecb-activate is invoked

Hi,

I'm using Emacs 23.0.90.1, CEDET and ECB CVS version.

Emacs started to hang after I activate ecb since I updated CEDET to the latest version.

I noticed that I had to rebuild ECB after CEDET was updated since semantic's version has been changed to 2.0pre7. So I guess it might be because ECB did not update according to new CEDET?

Another interesting issue is that ECB works well with small cpp files, but after i switch to the buffer with a longer file, Emacs begin to hang up again. And i have to manually kill it.

Is there a solution to this? I really need ECB working to help me to code.

Thanks.

--
Zhiqiu Kong (孔直秋)

------------------------------------------------------------------------------
_______________________________________________
Ecb-list mailing list
Ecb-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecb-list
klaus.berndl | 5 Apr 2009 19:44

Re: How to enable file status icons for Git?

Hi,

first of all: what the hell is Git? sorry for a probably dump question... ;-)

Then: I supose the git is another versioning system...but: are you sure it is supported out-of-the-box by vc of Emacs... If no, then it is also no supported by ECB ... of course you can customize ECB so it supports git even when not supported by vc (e.g. clearcase is also supported by ECB) but for this i must take a look into the related options of ECB.....

So, please first tell me something about Git - s.a.

Klaus

_________________________________________________________Klaus Berndl / Capgemini sd&m / München Business Development Manager / Bereich BankenTel: +49 89 63812 392 / Fax: +49 89 63812 220 / www.de.capgemini-sdm.comMobil: +49 162 2842 051 / klaus.berndl <at> capgemini-sdm.comCapgemini sd&m AG, Carl-Wery-Str. 42, 81739 München Zusammen. Für nachhaltigen Erfolg._________________________________________________________Vorstand: Edmund Küpper (Vorsitzender), Burkhard Kehrbusch, Rüdiger Azone,Dr. Uwe Dumslaff, Kai Grambow, Dr. Michael Rading, Josef RannerAufsichtsrat: Pierre Hessler (Vorsitzender)Sitz und Amtsgericht: München HRB 126057



-----Ursprüngliche Nachricht-----
Von: Houman Dunnil [mailto:h.dunnil <at> gmail.com]
Gesendet: So 05.04.2009 14:53
An: ecb-list <at> lists.sourceforge.net
Betreff: [ECB-list] How to enable file status icons for Git?

Hi folks,

I have installed the ECB and it works like a charm. The only thing
that I cannot figure out is to enable status icons for Git files, it
works fine for Subversion but I don't see any icon for Git files. What
should I do in order to get them enabled?

Thanks in advance,

------------------------------------------------------------------------------
_______________________________________________
Ecb-list mailing list
Ecb-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecb-list

------------------------------------------------------------------------------
_______________________________________________
Ecb-list mailing list
Ecb-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecb-list
klaus.berndl | 5 Apr 2009 19:48

Re: [ECB] Emacs hangs after ecb-activate is invoked

Hi,

it is not very probable, that ECB does not support current cedet pre07 - it works very well with pre06... but i will update my CVS-repository of CEDET and then try for myself...

generelly i suppose your hangings are not related to ECB but to cedet itself...

In one of the next weeks i will release the next ECB-release - which has been reworked in some respect for better usage with recent cedet-developments... and some other nifty stuff...

Klaus

_________________________________________________________Klaus Berndl / Capgemini sd&m / München Business Development Manager / Bereich BankenTel: +49 89 63812 392 / Fax: +49 89 63812 220 / www.de.capgemini-sdm.comMobil: +49 162 2842 051 / klaus.berndl <at> capgemini-sdm.comCapgemini sd&m AG, Carl-Wery-Str. 42, 81739 München Zusammen. Für nachhaltigen Erfolg._________________________________________________________Vorstand: Edmund Küpper (Vorsitzender), Burkhard Kehrbusch, Rüdiger Azone,Dr. Uwe Dumslaff, Kai Grambow, Dr. Michael Rading, Josef RannerAufsichtsrat: Pierre Hessler (Vorsitzender)Sitz und Amtsgericht: München HRB 126057



-----Ursprüngliche Nachricht-----
Von: bread [mailto:breaddawson <at> gmail.com]
Gesendet: So 05.04.2009 18:13
An: ecb-list <at> lists.sourceforge.net
Betreff: [ECB-list] [ECB] Emacs hangs after ecb-activate is invoked

Hi,

I'm using Emacs 23.0.90.1, CEDET and ECB CVS version.

Emacs started to hang after I activate ecb since I updated CEDET to the
latest version.

I noticed that I had to rebuild ECB after CEDET was updated since semantic's
version has been changed to 2.0pre7. So I guess it might be because ECB did
not update according to new CEDET?

Another interesting issue is that ECB works well with small cpp files, but
after i switch to the buffer with a longer file, Emacs begin to hang up
again. And i have to manually kill it.

Is there a solution to this? I really need ECB working to help me to code.

Thanks.

--
Zhiqiu Kong (???)

------------------------------------------------------------------------------
_______________________________________________
Ecb-list mailing list
Ecb-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecb-list
klaus.berndl | 6 Apr 2009 11:43

Re: How to enable file status icons for Git?

Ok, now i know it better ;-)
 
It should be not hard to get Git working with ECB:
 
1. Check the option `ecb-vc-supported-backends' - read the docstring and check for example the SVN-stuff: ecb-vc-dir-managed-by-SVN and ecb-vc-state...
2. maybe you have to ajust the option `ecb-vc-state-mapping' too but i suppose this is not necessary.
 
So IMHO you have to do the following things:
1. Write a new function ecb-vc-dir-managed-by-GIT (and use ecb-vc-dir-managed-by-SVN as a starting example)
2. Add the combination of ecb-vc-dir-managed-by-GIT and ecb-vc-state to the option `ecb-vc-supported-backends'
 
and Bob will be your uncle ;-)
 
It it works then please send me your code then it will add this new backend to the next ECB-release...
 
Does this help?
Klaus

Von: klaus.berndl <at> capgemini-sdm.com [mailto:klaus.berndl <at> capgemini-sdm.com]
Gesendet: Sonntag, 5. April 2009 19:45
An: h.dunnil <at> gmail.com; ecb-list <at> lists.sourceforge.net
Betreff: Re: [ECB-list] How to enable file status icons for Git?

Hi,

first of all: what the hell is Git? sorry for a probably dump question... ;-)

Then: I supose the git is another versioning system...but: are you sure it is supported out-of-the-box by vc of Emacs... If no, then it is also no supported by ECB ... of course you can customize ECB so it supports git even when not supported by vc (e.g. clearcase is also supported by ECB) but for this i must take a look into the related options of ECB.....

So, please first tell me something about Git - s.a.

Klaus

_________________________________________________________Klaus Berndl / Capgemini sd&m / München Business Development Manager / Bereich BankenTel: +49 89 63812 392 / Fax: +49 89 63812 220 / www.de.capgemini-sdm.comMobil: +49 162 2842 051 / klaus.berndl <at> capgemini-sdm.comCapgemini sd&m AG, Carl-Wery-Str. 42, 81739 München Zusammen. Für nachhaltigen Erfolg._________________________________________________________Vorstand: Edmund Küpper (Vorsitzender), Burkhard Kehrbusch, Rüdiger Azone,Dr. Uwe Dumslaff, Kai Grambow, Dr. Michael Rading, Josef RannerAufsichtsrat: Pierre Hessler (Vorsitzender)Sitz und Amtsgericht: München HRB 126057



-----Ursprüngliche Nachricht-----
Von: Houman Dunnil [mailto:h.dunnil <at> gmail.com]
Gesendet: So 05.04.2009 14:53
An: ecb-list <at> lists.sourceforge.net
Betreff: [ECB-list] How to enable file status icons for Git?

Hi folks,

I have installed the ECB and it works like a charm. The only thing
that I cannot figure out is to enable status icons for Git files, it
works fine for Subversion but I don't see any icon for Git files. What
should I do in order to get them enabled?

Thanks in advance,

------------------------------------------------------------------------------
_______________________________________________
Ecb-list mailing list
Ecb-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecb-list

------------------------------------------------------------------------------
_______________________________________________
Ecb-list mailing list
Ecb-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecb-list
Houman Dunnil | 6 Apr 2009 12:31
Picon

Re: How to enable file status icons for Git?

Awesome! Thanks a lot! It works! Well, partially...

I've added (ecb-vc-dir-managed-by-GIT . ecb-vc-state) to
`ecb-vc-supported-backends'

And defined the following method:

(defun ecb-vc-dir-managed-by-GIT (directory)
  "Return 'GIT if DIRECTORY is managed by GIT. nil if not."
  (and (ecb-file-exists-p (concat directory "/.git/"))
       (locate-library "vc-git")
       'GIT))

With these additions it shows status icons for the files that are in
the root directory of the Git working directory but not for the files
that are in sub-directories. I think it's because that Git has only
has one .git directory in the root, unlike SVN which has a .svn dir in
each directory.

Unfortunately, I'm not a lisp pro and don't know how to tell
ecb-vc-dir-managed-by-GIT to process sub-directories. Any clue?

On Mon, Apr 6, 2009 at 2:13 PM,  <klaus.berndl <at> capgemini-sdm.com> wrote:
> Ok, now i know it better ;-)
>
> It should be not hard to get Git working with ECB:
>
> 1. Check the option `ecb-vc-supported-backends' - read the docstring and
> check for example the SVN-stuff: ecb-vc-dir-managed-by-SVN and
> ecb-vc-state...
> 2. maybe you have to ajust the option `ecb-vc-state-mapping' too but i
> suppose this is not necessary.
>
> So IMHO you have to do the following things:
> 1. Write a new function ecb-vc-dir-managed-by-GIT (and use
> ecb-vc-dir-managed-by-SVN as a starting example)
> 2. Add the combination of ecb-vc-dir-managed-by-GIT and ecb-vc-state to the
> option `ecb-vc-supported-backends'
>
> and Bob will be your uncle ;-)
>
> It it works then please send me your code then it will add this new backend
> to the next ECB-release...
>
> Does this help?
> Klaus
> ________________________________
> Von: klaus.berndl <at> capgemini-sdm.com [mailto:klaus.berndl <at> capgemini-sdm.com]
> Gesendet: Sonntag, 5. April 2009 19:45
> An: h.dunnil <at> gmail.com; ecb-list <at> lists.sourceforge.net
> Betreff: Re: [ECB-list] How to enable file status icons for Git?
>
> Hi,
>
> first of all: what the hell is Git? sorry for a probably dump question...
> ;-)
>
> Then: I supose the git is another versioning system...but: are you sure it
> is supported out-of-the-box by vc of Emacs... If no, then it is also no
> supported by ECB ... of course you can customize ECB so it supports git even
> when not supported by vc (e.g. clearcase is also supported by ECB) but for
> this i must take a look into the related options of ECB.....
>
> So, please first tell me something about Git - s.a.
>
> Klaus
>
> _________________________________________________________Klaus Berndl /
> Capgemini sd&m / München Business Development Manager / Bereich BankenTel:
> +49 89 63812 392 / Fax: +49 89 63812 220 / www.de.capgemini-sdm.comMobil:
> +49 162 2842 051 / klaus.berndl <at> capgemini-sdm.comCapgemini sd&m AG,
> Carl-Wery-Str. 42, 81739 München Zusammen. Für nachhaltigen
> Erfolg._________________________________________________________Vorstand:
> Edmund Küpper (Vorsitzender), Burkhard Kehrbusch, Rüdiger Azone,Dr. Uwe
> Dumslaff, Kai Grambow, Dr. Michael Rading, Josef RannerAufsichtsrat: Pierre
> Hessler (Vorsitzender)Sitz und Amtsgericht: München HRB 126057
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Houman Dunnil [mailto:h.dunnil <at> gmail.com]
> Gesendet: So 05.04.2009 14:53
> An: ecb-list <at> lists.sourceforge.net
> Betreff: [ECB-list] How to enable file status icons for Git?
>
> Hi folks,
>
> I have installed the ECB and it works like a charm. The only thing
> that I cannot figure out is to enable status icons for Git files, it
> works fine for Subversion but I don't see any icon for Git files. What
> should I do in order to get them enabled?
>
> Thanks in advance,
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Ecb-list mailing list
> Ecb-list <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecb-list
>
>

------------------------------------------------------------------------------
_______________________________________________
Ecb-list mailing list
Ecb-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecb-list
Houman Dunnil | 6 Apr 2009 13:05
Picon

Re: How to enable file status icons for Git?

Hmm, I tried one more thing:

(defun ecb-vc-dir-managed-by-GIT (directory)
    (let* ((cannon (file-truename directory))
           (gitdir (concat cannon "/.git/")))
      (if (eq cannon "/")
          nil
        (cond ((and (ecb-file-exists-p gitdir)
                    (locate-library "vc-git"))
               'git)
              (t
               (ecb-vc-dir-managed-by-GIT (concat cannon "/../")))))))

But it says:

let: ECB 2.32: Errors during setting the default directory.
(error-type: void-variable, error-data: (and))

On Mon, Apr 6, 2009 at 3:01 PM, Houman Dunnil <h.dunnil <at> gmail.com> wrote:
> Awesome! Thanks a lot! It works! Well, partially...
>
> I've added (ecb-vc-dir-managed-by-GIT . ecb-vc-state) to
> `ecb-vc-supported-backends'
>
> And defined the following method:
>
> (defun ecb-vc-dir-managed-by-GIT (directory)
>  "Return 'GIT if DIRECTORY is managed by GIT. nil if not."
>  (and (ecb-file-exists-p (concat directory "/.git/"))
>       (locate-library "vc-git")
>       'GIT))
>
> With these additions it shows status icons for the files that are in
> the root directory of the Git working directory but not for the files
> that are in sub-directories. I think it's because that Git has only
> has one .git directory in the root, unlike SVN which has a .svn dir in
> each directory.
>
> Unfortunately, I'm not a lisp pro and don't know how to tell
> ecb-vc-dir-managed-by-GIT to process sub-directories. Any clue?
>
> On Mon, Apr 6, 2009 at 2:13 PM,  <klaus.berndl <at> capgemini-sdm.com> wrote:
>> Ok, now i know it better ;-)
>>
>> It should be not hard to get Git working with ECB:
>>
>> 1. Check the option `ecb-vc-supported-backends' - read the docstring and
>> check for example the SVN-stuff: ecb-vc-dir-managed-by-SVN and
>> ecb-vc-state...
>> 2. maybe you have to ajust the option `ecb-vc-state-mapping' too but i
>> suppose this is not necessary.
>>
>> So IMHO you have to do the following things:
>> 1. Write a new function ecb-vc-dir-managed-by-GIT (and use
>> ecb-vc-dir-managed-by-SVN as a starting example)
>> 2. Add the combination of ecb-vc-dir-managed-by-GIT and ecb-vc-state to the
>> option `ecb-vc-supported-backends'
>>
>> and Bob will be your uncle ;-)
>>
>> It it works then please send me your code then it will add this new backend
>> to the next ECB-release...
>>
>> Does this help?
>> Klaus
>> ________________________________
>> Von: klaus.berndl <at> capgemini-sdm.com [mailto:klaus.berndl <at> capgemini-sdm.com]
>> Gesendet: Sonntag, 5. April 2009 19:45
>> An: h.dunnil <at> gmail.com; ecb-list <at> lists.sourceforge.net
>> Betreff: Re: [ECB-list] How to enable file status icons for Git?
>>
>> Hi,
>>
>> first of all: what the hell is Git? sorry for a probably dump question...
>> ;-)
>>
>> Then: I supose the git is another versioning system...but: are you sure it
>> is supported out-of-the-box by vc of Emacs... If no, then it is also no
>> supported by ECB ... of course you can customize ECB so it supports git even
>> when not supported by vc (e.g. clearcase is also supported by ECB) but for
>> this i must take a look into the related options of ECB.....
>>
>> So, please first tell me something about Git - s.a.
>>
>> Klaus
>>
>> _________________________________________________________Klaus Berndl /
>> Capgemini sd&m / München Business Development Manager / Bereich BankenTel:
>> +49 89 63812 392 / Fax: +49 89 63812 220 / www.de.capgemini-sdm.comMobil:
>> +49 162 2842 051 / klaus.berndl <at> capgemini-sdm.comCapgemini sd&m AG,
>> Carl-Wery-Str. 42, 81739 München Zusammen. Für nachhaltigen
>> Erfolg._________________________________________________________Vorstand:
>> Edmund Küpper (Vorsitzender), Burkhard Kehrbusch, Rüdiger Azone,Dr. Uwe
>> Dumslaff, Kai Grambow, Dr. Michael Rading, Josef RannerAufsichtsrat: Pierre
>> Hessler (Vorsitzender)Sitz und Amtsgericht: München HRB 126057
>>
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Houman Dunnil [mailto:h.dunnil <at> gmail.com]
>> Gesendet: So 05.04.2009 14:53
>> An: ecb-list <at> lists.sourceforge.net
>> Betreff: [ECB-list] How to enable file status icons for Git?
>>
>> Hi folks,
>>
>> I have installed the ECB and it works like a charm. The only thing
>> that I cannot figure out is to enable status icons for Git files, it
>> works fine for Subversion but I don't see any icon for Git files. What
>> should I do in order to get them enabled?
>>
>> Thanks in advance,
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Ecb-list mailing list
>> Ecb-list <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/ecb-list
>>
>>
>

------------------------------------------------------------------------------
_______________________________________________
Ecb-list mailing list
Ecb-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecb-list
klaus.berndl | 6 Apr 2009 13:16

Re: How to enable file status icons for Git?

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?

If yes, then the mechanism needed by ecb-vc-dir-managed-by-GIT is obvious:

1. check if vc-git is available (locate-library ...)
2. Check for .git subdir in the called directory
2.1. If yes, return 'GIT
2.2. If no then check if we are already in the root-dir:
2.2.1 If yes, return nil because then the called dir is not git-managed
2.2.2 If no then go one parent-dir upward and run ecb-vc-dir-managed-by-GIT with that parent-dir recursively

Do not bother with performance-issues with this test, because ECB caches the checked value after first time...

Tell me if you are unable to program this with elisp - then i will see if i can do it for you...

Klaus

-----Ursprüngliche Nachricht-----
Von: Houman Dunnil [mailto:h.dunnil <at> gmail.com] 
Gesendet: Montag, 6. April 2009 12:31
An: Berndl, Klaus
Cc: ecb-list <at> lists.sourceforge.net
Betreff: Re: [ECB-list] How to enable file status icons for Git?

Awesome! Thanks a lot! It works! Well, partially...

I've added (ecb-vc-dir-managed-by-GIT . ecb-vc-state) to `ecb-vc-supported-backends'

And defined the following method:

(defun ecb-vc-dir-managed-by-GIT (directory)
  "Return 'GIT if DIRECTORY is managed by GIT. nil if not."
  (and (ecb-file-exists-p (concat directory "/.git/"))
       (locate-library "vc-git")
       'GIT))

With these additions it shows status icons for the files that are in the root directory of the Git working
directory but not for the files that are in sub-directories. I think it's because that Git has only has one
.git directory in the root, unlike SVN which has a .svn dir in each directory.

Unfortunately, I'm not a lisp pro and don't know how to tell ecb-vc-dir-managed-by-GIT to process
sub-directories. Any clue?

On Mon, Apr 6, 2009 at 2:13 PM,  <klaus.berndl <at> capgemini-sdm.com> wrote:
> Ok, now i know it better ;-)
>
> It should be not hard to get Git working with ECB:
>
> 1. Check the option `ecb-vc-supported-backends' - read the docstring 
> and check for example the SVN-stuff: ecb-vc-dir-managed-by-SVN and 
> ecb-vc-state...
> 2. maybe you have to ajust the option `ecb-vc-state-mapping' too but i 
> suppose this is not necessary.
>
> So IMHO you have to do the following things:
> 1. Write a new function ecb-vc-dir-managed-by-GIT (and use 
> ecb-vc-dir-managed-by-SVN as a starting example) 2. Add the 
> combination of ecb-vc-dir-managed-by-GIT and ecb-vc-state to the 
> option `ecb-vc-supported-backends'
>
> and Bob will be your uncle ;-)
>
> It it works then please send me your code then it will add this new 
> backend to the next ECB-release...
>
> Does this help?
> Klaus
> ________________________________
> Von: klaus.berndl <at> capgemini-sdm.com 
> [mailto:klaus.berndl <at> capgemini-sdm.com]
> Gesendet: Sonntag, 5. April 2009 19:45
> An: h.dunnil <at> gmail.com; ecb-list <at> lists.sourceforge.net
> Betreff: Re: [ECB-list] How to enable file status icons for Git?
>
> Hi,
>
> first of all: what the hell is Git? sorry for a probably dump question...
> ;-)
>
> Then: I supose the git is another versioning system...but: are you 
> sure it is supported out-of-the-box by vc of Emacs... If no, then it 
> is also no supported by ECB ... of course you can customize ECB so it 
> supports git even when not supported by vc (e.g. clearcase is also 
> supported by ECB) but for this i must take a look into the related options of ECB.....
>
> So, please first tell me something about Git - s.a.
>
> Klaus
>
> _________________________________________________________Klaus Berndl 
> / Capgemini sd&m / München Business Development Manager / Bereich BankenTel:
> +49 89 63812 392 / Fax: +49 89 63812 220 / www.de.capgemini-sdm.comMobil:
> +49 162 2842 051 / klaus.berndl <at> capgemini-sdm.comCapgemini sd&m AG,
> Carl-Wery-Str. 42, 81739 München Zusammen. Für nachhaltigen
> Erfolg._________________________________________________________Vorstand:
> Edmund Küpper (Vorsitzender), Burkhard Kehrbusch, Rüdiger Azone,Dr. 
> Uwe Dumslaff, Kai Grambow, Dr. Michael Rading, Josef 
> RannerAufsichtsrat: Pierre Hessler (Vorsitzender)Sitz und Amtsgericht: 
> München HRB 126057
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Houman Dunnil [mailto:h.dunnil <at> gmail.com]
> Gesendet: So 05.04.2009 14:53
> An: ecb-list <at> lists.sourceforge.net
> Betreff: [ECB-list] How to enable file status icons for Git?
>
> Hi folks,
>
> I have installed the ECB and it works like a charm. The only thing 
> that I cannot figure out is to enable status icons for Git files, it 
> works fine for Subversion but I don't see any icon for Git files. What 
> should I do in order to get them enabled?
>
> Thanks in advance,
>
> ----------------------------------------------------------------------
> -------- _______________________________________________
> Ecb-list mailing list
> Ecb-list <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecb-list
>
>

------------------------------------------------------------------------------
Houman Dunnil | 6 Apr 2009 14:23
Picon

Re: How to enable file status icons for Git?

On Mon, Apr 6, 2009 at 3:46 PM,  <klaus.berndl <at> capgemini-sdm.com> 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 "/../"))))))

------------------------------------------------------------------------------
klaus.berndl | 6 Apr 2009 14:47

Re: How to enable file status icons for Git?

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:h.dunnil <at> gmail.com] 
Gesendet: Montag, 6. April 2009 14:23
An: Berndl, Klaus
Cc: ecb-list <at> lists.sourceforge.net
Betreff: Re: [ECB-list] How to enable file status icons for Git?

On Mon, Apr 6, 2009 at 3:46 PM,  <klaus.berndl <at> capgemini-sdm.com> 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 "/../"))))))

------------------------------------------------------------------------------

Gmane