summaryrefslogtreecommitdiffstats
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-08-24 18:32:33 +0200
committerJunio C Hamano <gitster@pobox.com>2023-08-24 18:32:33 +0200
commitaaf0a421e2c8a71e2d804f359f4005320ed6d916 (patch)
tree0a6f4d851ed79668f9825eeaddc5e4b3e9cd2ad6 /git-compat-util.h
parentMerge branch 'ds/upload-pack-error-sequence-fix' (diff)
parentrebase: allow overriding the maximal length of the generated labels (diff)
downloadgit-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.h4
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