summaryrefslogtreecommitdiffstats
path: root/strbuf.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2024-10-30 00:27:52 +0100
committerJohannes Schindelin <johannes.schindelin@gmx.de>2024-11-26 22:14:57 +0100
commit676cddebf94fab8defe704b2f58c5b59912bb40c (patch)
tree7c2cc30d8966d5bcd618b977a624f4aaa2bf3555 /strbuf.h
parentGit 2.41.2 (diff)
parentGit 2.40.4 (diff)
downloadgit-676cddebf94fab8defe704b2f58c5b59912bb40c.tar.xz
git-676cddebf94fab8defe704b2f58c5b59912bb40c.zip
Sync with 2.40.4
* maint-2.40: Git 2.40.4 credential: disallow Carriage Returns in the protocol by default credential: sanitize the user prompt credential_format(): also encode <host>[:<port>] t7300: work around platform-specific behaviour with long paths on MinGW compat/regex: fix argument order to calloc(3) mingw: drop bogus (and unneeded) declaration of `_pgmptr` ci: remove 'Upload failed tests' directories' step from linux32 jobs
Diffstat (limited to 'strbuf.h')
-rw-r--r--strbuf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/strbuf.h b/strbuf.h
index 3dfeadb44c..ee44afff39 100644
--- a/strbuf.h
+++ b/strbuf.h
@@ -380,6 +380,7 @@ size_t strbuf_expand_dict_cb(struct strbuf *sb,
void strbuf_addbuf_percentquote(struct strbuf *dst, const struct strbuf *src);
#define STRBUF_ENCODE_SLASH 1
+#define STRBUF_ENCODE_HOST_AND_PORT 2
/**
* Append the contents of a string to a strbuf, percent-encoding any characters