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

Re: [PATCH] Define constants for lengths of object names

From
Jonathan Nieder <jrnieder@gmail.com>
Date
May 1, 2014, 23:05 UTC
Message-ID
<20140501230553.GE9218@google.com>
In-Reply-To
<20140501230041.GC75770@vauxhall.crustytoothpaste.net>
brian m. carlson wrote:
> On Thu, May 01, 2014 at 10:20:07AM -0700, Jonathan Nieder wrote:
Show 16 quoted lines
>> What happened to the
>>
>> 	struct object_id {
>> 		unsigned char id[20];
>> 	};
>>
>> 	...
>>
>> 	struct object {
>> 		...
>> 		struct object_id id;
>> 	};
>>
>> idea?
>
> There didn't seem to be a huge amount of support for it.

I can make up for it in enthuasiasm. Please? It's something I've wanted for a long time but never found the time to do.

>                                                           Also, there
> were concerns that some architectures might impose alignment constraints
> on it that made sizeof(struct object_id) != 20.
Sounds awful.  What architecture?

Thanks, Jonathan

Previous: brian m. carlsonNext: Duy Nguyen
Message 5 of 7 in “Define constants for lengths of object names”
  1. Define constants for lengths of object namesbrian m. carlson, May 1, 2014
  2. Jonathan NiederMay 1, 2014
  3. Jonathan NiederMay 1, 2014
  4. brian m. carlsonMay 1, 2014
  5. Jonathan NiederMay 1, 2014
  6. Duy NguyenMay 2, 2014
  7. brian m. carlsonMay 2, 2014

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.