Re: [PATCH 2/4] Add infrastructure for ref namespaces

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

 



On Tue, Jun 7, 2011 at 20:21, Jamey Sharp <jamey@xxxxxxxxxxx> wrote:
> diff --git a/git.c b/git.c
> index 89721d4..98cbf7b 100644
> --- a/git.c
> +++ b/git.c
> @@ -126,6 +126,20 @@ static int handle_options(const char ***argv, int *argc, int *envchanged)
> Â Â Â Â Â Â Â Â Â Â Â Âsetenv(GIT_DIR_ENVIRONMENT, cmd + 10, 1);
> Â Â Â Â Â Â Â Â Â Â Â Âif (envchanged)
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â*envchanged = 1;
> + Â Â Â Â Â Â Â } else if (!strcmp(cmd, "--namespace")) {
> + Â Â Â Â Â Â Â Â Â Â Â if (*argc < 2) {
> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â fprintf(stderr, "No directory given for --namespace.\n" );

This 'directory' is probably misnamed here.

Bert

> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â usage(git_usage_string);
> + Â Â Â Â Â Â Â Â Â Â Â }
> + Â Â Â Â Â Â Â Â Â Â Â setenv(GIT_NAMESPACE_ENVIRONMENT, (*argv)[1], 1);
> + Â Â Â Â Â Â Â Â Â Â Â if (envchanged)
> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â *envchanged = 1;
> + Â Â Â Â Â Â Â Â Â Â Â (*argv)++;
> + Â Â Â Â Â Â Â Â Â Â Â (*argc)--;
> + Â Â Â Â Â Â Â } else if (!prefixcmp(cmd, "--namespace=")) {
> + Â Â Â Â Â Â Â Â Â Â Â setenv(GIT_NAMESPACE_ENVIRONMENT, cmd + 12, 1);
> + Â Â Â Â Â Â Â Â Â Â Â if (envchanged)
> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â *envchanged = 1;
> Â Â Â Â Â Â Â Â} else if (!strcmp(cmd, "--work-tree")) {
> Â Â Â Â Â Â Â Â Â Â Â Âif (*argc < 2) {
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Âfprintf(stderr, "No directory given for --work-tree.\n" );
ÿô.nlj·Ÿ®‰­†+%ŠË±é¥Šwÿº{.nlj· ŠßžØn‡r¡öë¨è&£ûz¹Þúzf£¢·hšˆ§~†­†Ûÿÿïÿ‘ê_èæ+v‰¨þ)ßø

[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]