diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-08-24 19:32:33 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-08-24 19:32:33 +0300 |
commit | aaf0a421e2c8a71e2d804f359f4005320ed6d916 (patch) | |
tree | 0a6f4d851ed79668f9825eeaddc5e4b3e9cd2ad6 /git-compat-util.h | |
parent | 84d79009d98d68aa811a210fa980c91e195c716f (diff) | |
parent | ac300bda10a137be06b7ac7c41452dbf8864f134 (diff) |
Merge branch 'mp/rebase-label-length-limit'
Overly long label names used in the sequencer machinery are now
chopped to fit under filesystem limitation.
* mp/rebase-label-length-limit:
rebase: allow overriding the maximal length of the generated labels
sequencer: truncate labels to accommodate loose refs
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index d32aa754ae..3e7a59b5ff 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -422,6 +422,10 @@ char *gitdirname(char *); #define PATH_MAX 4096 #endif +#ifndef NAME_MAX +#define NAME_MAX 255 +#endif + typedef uintmax_t timestamp_t; #define PRItime PRIuMAX #define parse_timestamp strtoumax |