diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt index 7ba0ac965dd6266404d4b3fad74d59a4e79be0dd..a2f59b194c85f5dee4eaa530a7ab6d7533f126c6 100644 --- a/Documentation/githooks.txt +++ b/Documentation/githooks.txt @@ -397,7 +397,7 @@ preceding SP is also omitted. Currently, no commands pass any 'extra-info'. The hook always runs after the automatic note copying (see -"notes.rewrite." in linkgit:git-config.txt[1]) has happened, and +"notes.rewrite." in linkgit:git-config[1]) has happened, and thus has access to these notes. The following command-specific comments apply: diff --git a/git-compat-util.h b/git-compat-util.h index c07e0c177890639cf016eac9766d04f235dbfbcf..474395471f623d6a02de9814a5490f3b1df3a0f1 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -715,8 +715,8 @@ static inline size_t st_add(size_t a, size_t b) (uintmax_t)a, (uintmax_t)b); return a + b; } -#define st_add3(a,b,c) st_add((a),st_add((b),(c))) -#define st_add4(a,b,c,d) st_add((a),st_add3((b),(c),(d))) +#define st_add3(a,b,c) st_add(st_add((a),(b)),(c)) +#define st_add4(a,b,c,d) st_add(st_add3((a),(b),(c)),(d)) static inline size_t st_mult(size_t a, size_t b) {