Re: [PATCH 9/9] Add git-check-ignores
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Sep 10, 2012, 12:25 UTC
- Message-ID
- <CACsJy8Dwpx-Qs0+du6rHvbwL_A4H_DqBMP4umhBiDK2Fc8icww@mail.gmail.com>
- In-Reply-To
- <20120910110928.GA12974@atlantic.linksys.moosehall>
On Mon, Sep 10, 2012 at 6:09 PM, Adam Spiers <git@adamspiers.org> wrote:
Show 12 quoted lines
>> > fprintf(stderr, "%s\n", dir->ignored[i]->name);
>> > - fprintf(stderr, _("Use -f if you really want to add them.\n"));
>> > + fprintf(stderr, _("Use -f if you really want to add them, or git check-ignore to see\nwhy they're ignored.\n"));
>> > die(_("no files added"));
>> > }
>>
>> String too long (> 80 chars).
>
> You mean the line of code is too long, or the argument to _(), or
> both? I didn't like this either, but I saw that builtin/checkout.c
> already did something similar twice, and I wasn't sure how else to do
> it. Suggestions gratefully received.I don't rememeber :( I might mean the output because I missed "\n" in the middle. At least you can split the string in to at "\n" to make it resemble output.
Show 6 quoted lines
>> You should support ignore rules from files and command line arguments >> too, like ls-files. For quick testing. > > You mean --exclude, --exclude-from, and --exclude-per-directory? > Sure, although I have limited time right now, so maybe these could be > added in a later iteration?
Sure, no problem. It's not hard to add them anyway (I think).
-- Duy