aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-01-17 06:59:22 -0800
committerJunio C Hamano <gitster@pobox.com>2023-01-17 06:59:22 -0800
commita7caae2729742fc80147bca1c02ae848cb55921a (patch)
treed5b1711272f14f6338f3cf71c99c82ad6c06d254
parentSync with 2.39.1 (diff)
parentattr: adjust a mismatched data type (diff)
downloadgit-a7caae2729742fc80147bca1c02ae848cb55921a.tar.gz
git-a7caae2729742fc80147bca1c02ae848cb55921a.zip
Sync with 'maint'
-rw-r--r--Documentation/fsck-msgids.txt12
-rw-r--r--attr.c2
2 files changed, 13 insertions, 1 deletions
diff --git a/Documentation/fsck-msgids.txt b/Documentation/fsck-msgids.txt
index 7af76ff99a..12eae8a222 100644
--- a/Documentation/fsck-msgids.txt
+++ b/Documentation/fsck-msgids.txt
@@ -46,6 +46,18 @@
`fullPathname`::
(WARN) A path contains the full path starting with "/".
+`gitattributesBlob`::
+ (ERROR) A non-blob found at `.gitattributes`.
+
+`gitattributesLarge`::
+ (ERROR) The `.gitattributes` blob is too large.
+
+`gitattributesLineLength`::
+ (ERROR) The `.gitattributes` blob contains too long lines.
+
+`gitattributesMissing`::
+ (ERROR) Unable to read `.gitattributes` blob.
+
`gitattributesSymlink`::
(INFO) `.gitattributes` is a symlink.
diff --git a/attr.c b/attr.c
index b43e93ee96..9922529b58 100644
--- a/attr.c
+++ b/attr.c
@@ -752,7 +752,7 @@ static struct attr_stack *read_attr_from_index(struct index_state *istate,
struct attr_stack *res;
char *buf, *sp;
int lineno = 0;
- size_t size;
+ unsigned long size;
if (!istate)
return NULL;