git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v4 1/2] cat-file: teach cat-file a '--literally' option

From
Karthik Nayak <karthik.188@gmail.com>
Date
Mar 17, 2015, 13:59 UTC
Message-ID
<7BBE9C66-3654-4E6A-96FB-1EF16FC28E35@gmail.com>
In-Reply-To
<CAPig+cSJVGy_L6mThFCU1Bw0ZrZEv=pZ8=W8gTZd=A5y2fcR7Q@mail.gmail.com>
On March 17, 2015 12:21:33 PM GMT+05:30, Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 26 quoted lines
>On Tue, Mar 17, 2015 at 1:16 AM, Karthik Nayak <karthik.188@gmail.com>
>wrote:
>> diff --git a/builtin/cat-file.c b/builtin/cat-file.c
>> index df99df4..1625246 100644
>> --- a/builtin/cat-file.c
>> +++ b/builtin/cat-file.c
>> @@ -323,8 +338,8 @@ static int batch_objects(struct batch_options
>*opt)
>>  }
>
>I don't presently have time for a proper read-through, however, this
>popped out while quickly running my eyes over the changes.
>
>>  static const char * const cat_file_usage[] = {
>> -       N_("git cat-file (-t | -s | -e | -p | <type> | --textconv)
><object>"),
>> -       N_("git cat-file (--batch | --batch-check) <
><list-of-objects>"),
>> +       N_("git cat-file (-t [--literally]|-s
>[--literally]|-e|-p|<type>|--textconv) <object>"),
>> +       N_("git cat-file (--batch | --batch-check)
><list-of-objects>"),
>
>The '<' in the second line before <list-of-objects> is intentional. It
>means that <list-of-objects> is provided via stdin. Therefore, it is
>incorrect to remove it.
I see. It seemed out of place. Makes sense, probably should have asked. 
Thanks.
>
>>         NULL
>>  };
>>
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Previous: Eric SunshineNext: Karthik Nayak
Message 4 of 7 in “cat-file: add a '--literally' option”
  1. 0/2 cat-file: add a '--literally' optionkarthik nayak, Mar 17, 2015
  2. 1/2 cat-file: teach cat-file a '--literally' optionKarthik Nayak, Mar 17, 2015
  3. Eric SunshineMar 17, 2015
  4. Karthik NayakMar 17, 2015
  5. 2/2 sha1_file: refactor sha1_file.c to support 'cat-file --literally'Karthik Nayak, Mar 17, 2015
  6. Junio C HamanoMar 17, 2015
  7. karthik nayakMar 18, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.