git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Torsten Bögershausen <tboegi@web.de>
Date
Jan 20, 2015, 19:25 UTC
Message-ID
<54BEABBC.9070302@web.de>
In-Reply-To
<1421777797-14781-1-git-send-email-kuleshovmail@gmail.com>
Show 6 quoted lines
> --- 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 comment line ? Should it go away or better stay ?

When we move the definition to a common file, it is not 100% clear what MAXDEPTH is about, and the comment is even more important, I think:

> +/* We allow "recursive" symbolic links. Only within reason, though. */
> +#define MAXDEPTH 5

On the other hand, if we find a better name for that definition, we may skip the comment.

A first suggestion may be #define MAXDEPTH_FOR_SYMLINKS 5 but other variants are possible.

Previous: Alexander KuleshovNext: Junio C Hamano
Message 2 of 3 in “move MAXDEPTH definition to the cache.h”
  1. move MAXDEPTH definition to the cache.hAlexander Kuleshov, Jan 20, 2015
  2. Torsten BögershausenJan 20, 2015
  3. Junio C HamanoJan 21, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.