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

Re: [PATCH 2/3] git over TLS (gits://) support (part 2)

From
Andreas Ericsson <ae@op5.se>
Date
May 3, 2010, 09:44 UTC
Message-ID
<4BDE9AE4.9010908@op5.se>
In-Reply-To
<1272733791-11341-3-git-send-email-ilari.liusvaara@elisanet.fi>
On 05/01/2010 07:09 PM, Ilari Liusvaara wrote:

A monster-patch, if ever I saw one, yet without a sensible commit message. What is it this patch actually does?

Show 7 quoted lines
> +#include "base64.h"
> +#ifdef USE_COMPAT_H
> +#include "compat.h"
> +#else
> +#include "git-compat-util.h"
> +#endif
> +

This would be better moved to compat.h, so the entire file is excluded and git-compat-util.h is included instead if we're supposed to use that one. That way you won't have to remember this in every file you use.

Show 8 quoted lines
> +void encode_uint32(unsigned char *ptr, unsigned long value)
> +{
> +	ptr[0] = (unsigned char)(value>>  24);
> +	ptr[1] = (unsigned char)(value>>  16);
> +	ptr[2] = (unsigned char)(value>>  8);
> +	ptr[3] = (unsigned char)(value);
> +}
> +
The second parameter should be uint32_t, obviously.

Reviewing the rest of the patch will have to wait until there's a proper commit message describing what it's supposed to do, as I have nowhere near enough time to try to analyze 100k worth of code to figure out why it's necessary to add it to git.git.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
Previous: Ilari LiusvaaraNext: Ilari Liusvaara
Message 4 of 9 in “git over TLS (gits://) support”
  1. 0/3 git over TLS (gits://) supportIlari Liusvaara, May 1, 2010
  2. 1/3 git over TLS (gits://) support (part 1)Ilari Liusvaara, May 1, 2010
  3. 2/3 git over TLS (gits://) support (part 2)Ilari Liusvaara, May 1, 2010
  4. Andreas EricssonMay 3, 2010
  5. 3/3 git over TLS (gits://) support (part 3)Ilari Liusvaara, May 1, 2010
  6. Sverre RabbelierMay 1, 2010
  7. Tay Ray ChuanMay 3, 2010
  8. Michael J GruberMay 3, 2010
  9. Avery PennarunMay 3, 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.