diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-08-24 18:32:33 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-08-24 18:32:33 +0200 |
commit | aaf0a421e2c8a71e2d804f359f4005320ed6d916 (patch) | |
tree | 0a6f4d851ed79668f9825eeaddc5e4b3e9cd2ad6 /git-compat-util.h | |
parent | Merge branch 'ds/upload-pack-error-sequence-fix' (diff) | |
parent | rebase: allow overriding the maximal length of the generated labels (diff) | |
download | git-aaf0a421e2c8a71e2d804f359f4005320ed6d916.tar.xz git-aaf0a421e2c8a71e2d804f359f4005320ed6d916.zip |
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 |