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

RE: [PATCH] Increase core.packedGitLimit

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 21, 2017, 09:34 UTC
Message-ID
<alpine.DEB.2.20.1704211131310.3480@virtualbox>
In-Reply-To
<4c111acb3f134aa9aef8648d75bd741f@exmbdft7.ad.twosigma.com>
Hi Dave,
On Thu, 20 Apr 2017, David Turner wrote:
Show 6 quoted lines
> 
> We might want to think about replacing git_config_ulong with 
> git_config_size_t in nearly all cases. "long" has ceased to be 
> useful.  More modern versions of C prefer uint64_t, but I
> think that we'll usually want size_t because these values will
> be used as memory limits of various sorts.

Indeed, `unsigned long` has ceased to be useful ever since the introduction of inttypes.h. It is just too undefined.

We probably also need git_config_off_t(), though, and maybe even git_config_ssize_t().

I would definitely welcome a change in direction where we use datatypes also as a documentation of the variables' purpose.

Ciao, Dscho

Previous: David TurnerNext: Jeff King
Message 5 of 13 in “Increase core.packedGitLimit”
  1. Increase core.packedGitLimitDavid Turner, Apr 20, 2017
  2. Jeff KingApr 20, 2017
  3. Johannes SchindelinApr 20, 2017
  4. David TurnerApr 20, 2017
  5. Johannes SchindelinApr 21, 2017
  6. docs: update 64-bit core.packedGitLimit defaultJeff King, Jun 21, 2017
  7. Stefan BellerJun 21, 2017
  8. Jeff KingJun 21, 2017
  9. Junio C HamanoJun 21, 2017
  10. Jeff KingJun 21, 2017
  11. Junio C HamanoJun 21, 2017
  12. Jeff KingJun 21, 2017
  13. Jeff KingJun 21, 2017

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.