diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-11-02 10:53:14 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-11-02 10:53:14 +0300 |
commit | 396a167bd4e68f496981345c3d89459abb910b7e (patch) | |
tree | ecb9516c0a1054328aae54debc1cf03eeddef605 /git-compat-util.h | |
parent | 31730a30a031b2954d1b670493fffc734cbe68cd (diff) | |
parent | ac300bda10a137be06b7ac7c41452dbf8864f134 (diff) |
Merge branch 'mp/rebase-label-length-limit' into maint-2.42
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 |