Re: [PATCH 3/3] Add "ls", which is basically ls-files with user-friendly settings

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

 



Nguyễn Thái Ngọc Duy  <pclouds@xxxxxxxxx> writes:

> +
> +	if (show_colums) {
> +		const char *argv[] = { "column", NULL };
> +
> +		memset(&cp, 0, sizeof(cp));
> +		cp.in = -1;
> +		cp.out = dup(1);
> +		cp.argv = argv;
> +		start_command(&cp);
> +		close(1);
> +		dup2(cp.in, 1);
> +		close(cp.in);
> +	}

I think the code for columnar output used in producing "git help -a"
output should be reusable (if not, should be made reusable and reused
here).
--
To unsubscribe from this list: 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]