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

Re: [PATCH v2] Allow git mv FileA fILEa on case ignore file systems

From
Piotr Krukowiecki <piotr.krukowiecki@gmail.com>
Date
Mar 19, 2011, 19:30 UTC
Message-ID
<4D850466.8040909@gmail.com>
In-Reply-To
<AANLkTimfk8bb-V8Br+KKpoLbA3G3y9HxyfjA=NrsgR0v@mail.gmail.com>
W dniu 19.03.2011 19:20, Erik Faye-Lund pisze:
Show 6 quoted lines
> 2011/3/19 Torsten Bögershausen <tboegi@web.de>:
>> +       if (!(GetFileInformationByHandle(h,&hia)))
>> +               return 0;
>> +  CloseHandle(h);
> 
> Indentation-slip?
I suspect so. CloseHandle line does not use tabs.

Out of curiosity I've roughly counted number of lines that have correct and incorrect indentation.

About 8% (~12600 out of 151000 indented lines) are incorrectly indented. Don't know if that good or bad :)

I have used following to get the numbers:

Bad indentation (includes "Correctly indented comments"): git$ TAB="`echo -e '\t'`" && grep -E "^[ $TAB]* [ $TAB]*[^ $TAB]" *.sh *.[ch] */*.sh */*.[ch] | wc -l 22495

Correctly indented comments: git$ TAB="`echo -e '\t'`" && grep -E "^[ $TAB]* [*]" *.sh *.[ch] */*.sh */*.[ch] | wc -l 9911

Good indentation (does not include "Correctly indented comments"): git$ TAB="`echo -e '\t'`" && grep -E "^$TAB+[^ $TAB]" *.sh *.[ch] */*.sh */*.[ch] | wc -l 128173

-- 
Piotr Krukowiecki
Previous: Erik Faye-LundNext: Junio C Hamano
Message 3 of 8 in “Allow git mv FileA fILEa on case ignore file systems”
  1. Allow git mv FileA fILEa on case ignore file systemsTorsten Bögershausen, Mar 19, 2011
  2. Erik Faye-LundMar 19, 2011
  3. Piotr KrukowieckiMar 19, 2011
  4. Junio C HamanoMar 20, 2011
  5. Torsten BögershausenApr 10, 2011
  6. Junio C HamanoApr 11, 2011
  7. Torsten BögershausenApr 11, 2011
  8. Johannes SixtApr 12, 2011

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.