]> git.ipfire.org Git - thirdparty/git.git/blobdiff - usage.c
apply --reject: overwrite existing `.rej` symlink if it exists
[thirdparty/git.git] / usage.c
diff --git a/usage.c b/usage.c
index 06665823a21ef9a42edcd7c4c2febf7bdae8013e..1868a24f7a5148b1714dc4a9730f343339e61dce 100644 (file)
--- a/usage.c
+++ b/usage.c
@@ -81,6 +81,12 @@ static void error_builtin(const char *err, va_list params)
 
 static void warn_builtin(const char *warn, va_list params)
 {
+       /*
+        * We call this trace2 function first and expect it to va_copy 'params'
+        * before using it (because an 'ap' can only be walked once).
+        */
+       trace2_cmd_error_va(warn, params);
+
        vreportf("warning: ", warn, params);
 }