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

file names

From
Thiago Farina <tfransosi@gmail.com>
Date
Dec 9, 2010, 17:05 UTC
Message-ID
<AANLkTikeAFj68Rr35gcf4dxXXHU+au9wA7wd+-WB3BSS@mail.gmail.com>

Hi, I was was looking into the file names and noticed that they are not consistent.

Some files are named like:
foo-bar.[c/h]
Others are:
foo_bar.[c/h]
On top of the git directory:

# With dash $ lc *.c | grep - | wc -l 72

$ lc *.h | grep - | wc -l 25

# With underline $ ls *.c | grep _ | wc -l 5

$ ls *.h | grep _ | wc -l 1

So it seems from this data, there is a preference for naming files using dash over underline.

So the question is, should the files using underline be converted to use dash instead? And should this be documented somewhere? Maybe in CodingGuidelines?

Thanks in advance.
Next: Junio C Hamano
Message 1 of 3 in “file names”
  1. Thiago FarinaDec 9, 2010
  2. Junio C HamanoDec 9, 2010
  3. Thiago FarinaDec 9, 2010

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.