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

Making literal "20" symbolic

From
APAndy Parkins <andyparkins@gmail.com>
Date
Nov 20, 2006, 10:49 UTC
Message-ID
<200611201049.41024.andyparkins@gmail.com>
Hello,

I notice that there are a lot of uses of the literal 20 throughout git; I'd like to change them (as appropriate) to HASH_WIDTH, or similar; and maybe HASH_WIDTH_ASCII for the 40s.

Is there a particular header file that is appropriate to put 

#define HASH_WIDTH 20 #define HASH_WIDTH_ASCII (HASH_WIDTH*2)

Of course, I plan to review each instance to make sure I'm not changing a non-hash width 20.

Andy
-- 
Dr Andy Parkins, M Eng (hons), MIEE
Next: Junio C Hamano
Message 1 of 2 in “Making literal "20" symbolic”
  1. Andy ParkinsNov 20, 2006
  2. Junio C HamanoNov 20, 2006

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.