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

Re: [PATCH] cat-file: Remove unused includes

From
Alexander Kuleshov <kuleshovmail@gmail.com>
Date
Jan 8, 2015, 20:21 UTC
Message-ID
<CANCZXo7_yUT4x5fBvwNdc7d+ew5M7yaayGE_yXaeLxiPHzK9GA@mail.gmail.com>
In-Reply-To
<xmqq1tn5f441.fsf@gitster.dls.corp.google.com>
Will research this question and resend the patch.
Thank you.
2015-01-09 1:45 GMT+06:00 Junio C Hamano <gitster@pobox.com>:
Show 43 quoted lines
> Alexander Kuleshov <kuleshovmail@gmail.com> writes:
>
>> Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
>> ---
>>  builtin/cat-file.c | 4 ----
>>  1 file changed, 4 deletions(-)
>>
>> diff --git a/builtin/cat-file.c b/builtin/cat-file.c
>> index f8d8129..750b5a2 100644
>> --- a/builtin/cat-file.c
>> +++ b/builtin/cat-file.c
>> @@ -4,12 +4,8 @@
>>   * Copyright (C) Linus Torvalds, 2005
>>   */
>>  #include "cache.h"
>> -#include "exec_cmd.h"
>> -#include "tag.h"
>> -#include "tree.h"
>>  #include "builtin.h"
>>  #include "parse-options.h"
>> -#include "diff.h"
>>  #include "userdiff.h"
>>  #include "streaming.h"
>
> Interesting.
>
>  - "exec_cmd.h" became unnecessary at b931aa5a (Call builtin ls-tree
>    in git-cat-file -p, 2006-05-26).
>
>  - "tag.h" and "tree.h" became unnecessary at 21666f1a (convert
>    object type handling from a string to a number, 2007-02-26).
>
>  - "diff.h" was added at e5fba602 (textconv: support for cat_file,
>    2010-06-15), together with "userdiff.h".  Was it unnecessary from
>    the beginning?
>
> I didn't dig further to find out the answer to the last question,
> but a patch to remove these include should explain these in its log
> message, I would think.
>
> Thanks.
>
>
-- 
_________________________
0xAX
Previous: Junio C HamanoNext: Alexander Kuleshov
Message 3 of 6 in “cat-file: Remove unused includes”
  1. cat-file: Remove unused includesAlexander Kuleshov, Jan 8, 2015
  2. Junio C HamanoJan 8, 2015
  3. Alexander KuleshovJan 8, 2015
  4. Alexander KuleshovJan 9, 2015
  5. Junio C HamanoJan 9, 2015
  6. Alexander KuleshovJan 9, 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.