Re: [PATCH] Make die() and error() prefix line with binary name if set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rocco Rutte <pdmef@xxxxxxx> writes:

> Now, git_set_appname() can be used to set the name of the binary
> as first call in a binary's main() routine which will be used
> as prefix in die() and error(). If it was not called, no prefix
> will be printed.

I agree with the general direction, but...

> @@ -1960,6 +1960,8 @@ int main(int argc, char **argv)
>  	int read_stdin = 1;
>  	const char *whitespace_option = NULL;
>  +	git_set_appname("git-apply");
> +
>  	for (i = 1; i < argc; i++) {
>  		const char *arg = argv[i];
>  		char *end;

... what's wrong with your mailer?

-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]