git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
0266cc4fec241efa207cfb6a5c16e7065c6f671a blob 613 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
#include "test-tool.h"
#include "quote.h"
#include "strbuf.h"
#include "string.h"

int cmd__quote_buf_pretty(int argc, const char **argv)
{
	struct strbuf buf_payload = STRBUF_INIT;

	if (!argv[1]) {
		strbuf_release(&buf_payload);
		die("missing input string");
	}

	if (!strcmp(argv[1], "nullString"))
		sq_quote_buf_pretty(&buf_payload, NULL);

	else if (!*argv[1])
		sq_quote_buf_pretty(&buf_payload, "");

	else
		sq_quote_buf_pretty(&buf_payload, argv[1]);
	
	/* Wrap the results in [] to make the test script more readable */
	printf("[%s]\n", buf_payload.buf);
	strbuf_release(&buf_payload);
	return 0;
}
debug log:

solving 0266cc4fec ...
found 0266cc4fec in https://public-inbox.org/git/9d2685bdb2e193986bec8cad88795963977d41fe.1566329700.git.gitgitgadget@gmail.com/

applying [1/1] https://public-inbox.org/git/9d2685bdb2e193986bec8cad88795963977d41fe.1566329700.git.gitgitgadget@gmail.com/
diff --git a/t/helper/test-quote.c b/t/helper/test-quote.c
new file mode 100644
index 0000000000..0266cc4fec

1:29: trailing whitespace.
	
Checking patch t/helper/test-quote.c...
Applied patch t/helper/test-quote.c cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 0266cc4fec241efa207cfb6a5c16e7065c6f671a	t/helper/test-quote.c

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).