From: Thiago Farina Date: Thu, 17 Sep 2009 15:56:24 GMT Subject: Re: [PATCH] Update the usage bundle string. Message-ID: In-Reply-To: <4AB1D364.1080701@viscovery.net> On Thu, Sep 17, 2009 at 3:12 AM, Johannes Sixt wrote: > Thiago Farina schrieb: >> @@ -11,6 +11,12 @@ >> >>  static const char *bundle_usage="git bundle (create | verify | list-heads [refname]... | unbundle [refname]... )"; > > Is this variable still used? Shouldn't it be removed? Yeah it should be removed, I did this in the third email that I sent. To send another revision of the patch I'm doing this: $ git commit --amend $ git format-patch -1 --subject-prefix "Patch vN" But I'm not sure if this is the correct away to send another set of changes of the same patch. Is right? > >> +static const char builtin_bundle_usage[] = "\ >> +  git bundle create \n\ >> +  git bundle verify \n\ >> +  git bundle list-heads [refname...]\n\ >> +  git bundle unbundle [refname...]"; > > You indent the usage text. Do other commands do that, too? If you resend, > it may be worth using this style: > > static const char builtin_bundle_usage[] = >        "git bundle create \n" >        "git bundle verify \n" > ... > > i.e. not to use backslash-at-eol. > Sure, I will update it to use this style. There is another usage string that uses backslash-at-eol, it is in builtin-pack-objecs.c . Should I update this string too? >> -     if (argc < 3) >> -             usage(bundle_usage); >> +  if (argc < 3) >> +             usage(builtin_bundle_usage); > > This re-indentation is an accident, isn't it? Was an accident, sorry about that. I configured my editor to use 2 spaces per indent, tab size 2 and expand tabs to spaces. Git uses 4 spaces per indent and tab size 4? > > -- Hannes > >