Re: [PATCH] move MAXDEPTH definition to the cache.h

2015-01-20 Thread Junio C Hamano
Alexander Kuleshov writes: > There are a couple of source code files as abspath.c, lockfile.c and etc..., > which defines MAXDEPTH macro. All of these definitions are the same,... Are they the same by design (because there are logical linkage between these values and there is a reason why they m

Re: [PATCH] move MAXDEPTH definition to the cache.h

2015-01-20 Thread Torsten Bögershausen
> --- a/cache.h > +++ b/cache.h > @@ -1010,6 +1010,7 @@ extern int read_ref(const char *refname, unsigned char > *sha1); > * Caps and underscores refers to the special refs, such as HEAD, > * FETCH_HEAD and friends, that all live outside of the refs/ directory. > */ What happened to the com

[PATCH] move MAXDEPTH definition to the cache.h

2015-01-20 Thread Alexander Kuleshov
There are a couple of source code files as abspath.c, lockfile.c and etc..., which defines MAXDEPTH macro. All of these definitions are the same, so let's move MAXDEPTH definition to the instead of directly declaration of this macro in all these files. Signed-off-by: Alexander Kuleshov --- absp