[libgit2] Thoughts about MAX_GITDIR_TREE_STRUCTURE_PATH_LENGTH
- Emeric Fermas
- 2010-12-20 @ 10:28
MAX_GITDIR_TREE_STRUCTURE_PATH_LENGTH is a local constant which is
supposed to guard against creation of a too nested Git repository.
It's declared in repo_init_find_dir() in 'repository.c'.
Its current definition is 66. Which basically means ... nothing.
Below are some possible path samples:
Current longest one is 49 chars wide. However, as name of branches,
remotes and hooks are quite hard to predict, I can't figure what
should be the correct value of this constant.
-Should we declare it with a value of 100 ? more ?
-Should we add a comment in order to help future troubleshooting ?