Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-08-24 19:32:33 +0300
committerJunio C Hamano <gitster@pobox.com>2023-08-24 19:32:33 +0300
commitaaf0a421e2c8a71e2d804f359f4005320ed6d916 (patch)
tree0a6f4d851ed79668f9825eeaddc5e4b3e9cd2ad6 /git-compat-util.h
parent84d79009d98d68aa811a210fa980c91e195c716f (diff)
parentac300bda10a137be06b7ac7c41452dbf8864f134 (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.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