mirror of
https://github.com/git/git.git
synced 2026-03-17 20:20:08 +01:00
Merge branch 'master' into next
* master: t0050: fix printf format strings for portability t3419-*.sh: Fix arithmetic expansion syntax error set_try_to_free_routine(NULL) means "do nothing special"
This commit is contained in:
@@ -4,8 +4,8 @@ test_description='Various filesystem issues'
|
||||
|
||||
. ./test-lib.sh
|
||||
|
||||
auml=`printf '\xc3\xa4'`
|
||||
aumlcdiar=`printf '\x61\xcc\x88'`
|
||||
auml=$(printf '\303\244')
|
||||
aumlcdiar=$(printf '\141\314\210')
|
||||
|
||||
case_insensitive=
|
||||
unibad=
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
test_description='git rebase - test patch id computation'
|
||||
|
||||
@@ -27,7 +27,7 @@ scramble()
|
||||
then
|
||||
echo "$x"
|
||||
fi
|
||||
i=$(((i+1) % 10))
|
||||
i=$((($i+1) % 10))
|
||||
done < "$1" > "$1.new"
|
||||
mv -f "$1.new" "$1"
|
||||
}
|
||||
|
||||
8
trace.c
8
trace.c
@@ -25,10 +25,6 @@
|
||||
#include "cache.h"
|
||||
#include "quote.h"
|
||||
|
||||
static void do_nothing(size_t unused)
|
||||
{
|
||||
}
|
||||
|
||||
/* Get a trace file descriptor from GIT_TRACE env variable. */
|
||||
static int get_trace_fd(int *need_close)
|
||||
{
|
||||
@@ -76,7 +72,7 @@ void trace_printf(const char *fmt, ...)
|
||||
if (!fd)
|
||||
return;
|
||||
|
||||
set_try_to_free_routine(do_nothing); /* is never reset */
|
||||
set_try_to_free_routine(NULL); /* is never reset */
|
||||
strbuf_init(&buf, 64);
|
||||
va_start(ap, fmt);
|
||||
len = vsnprintf(buf.buf, strbuf_avail(&buf), fmt, ap);
|
||||
@@ -108,7 +104,7 @@ void trace_argv_printf(const char **argv, const char *fmt, ...)
|
||||
if (!fd)
|
||||
return;
|
||||
|
||||
set_try_to_free_routine(do_nothing); /* is never reset */
|
||||
set_try_to_free_routine(NULL); /* is never reset */
|
||||
strbuf_init(&buf, 64);
|
||||
va_start(ap, fmt);
|
||||
len = vsnprintf(buf.buf, strbuf_avail(&buf), fmt, ap);
|
||||
|
||||
Reference in New Issue
Block a user