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

Re: [RFC/PATCH] pkt-line: allow writing of LARGE_PACKET_MAX buffers

From
Johannes Sixt <j6t@kdbg.org>
Date
Dec 9, 2014, 19:58 UTC
Message-ID
<54875462.3040305@kdbg.org>
In-Reply-To
<20141209174958.GA26167@peff.net>
Am 09.12.2014 um 18:49 schrieb Jeff King:
Show 9 quoted lines
> +test_expect_success 'create repo with absurdly long refname' '
> +	ref240=$_z40/$_z40/$_z40/$_z40/$_z40/$_z40
> +	ref1440=$ref240/$ref240/$ref240/$ref240/$ref240/$ref240 &&
> +	git init long &&
> +	(
> +		cd long &&
> +		test_commit long &&
> +		test_commit master &&
> +		git update-ref refs/heads/$ref1440 long

Having this ref on the filesystem is going to fail on Windows, I presume (our limit is 260). Can we stuff it away as a packed ref right from the beginning? (And turn off reflogs, BTW.)

> +	)
> +'
-- Hannes
Previous: Jeff KingNext: Jeff King
Message 19 of 20 in “pkt-line: allow writing of LARGE_PACKET_MAX buffers”
  1. pkt-line: allow writing of LARGE_PACKET_MAX buffersJeff King, Dec 9, 2014
  2. Jeff KingDec 9, 2014
  3. Junio C HamanoDec 9, 2014
  4. Michael BlumeDec 10, 2014
  5. pkt-line: allow writing of LARGE_PACKET_MAX buffersJeff King, Dec 10, 2014
  6. Eric SunshineDec 10, 2014
  7. Eric SunshineDec 10, 2014
  8. Eric SunshineDec 10, 2014
  9. Jeff KingDec 10, 2014
  10. 0/3 convert read_packed_refs to use strbufJeff King, Dec 10, 2014
  11. 1/3 read_packed_refs: use a strbuf for reading linesJeff King, Dec 10, 2014
  12. 2/3 read_packed_refs: pass strbuf to parse_ref_lineJeff King, Dec 10, 2014
  13. 3/3 read_packed_refs: use skip_prefix instead of static arrayJeff King, Dec 10, 2014
  14. Junio C HamanoDec 10, 2014
  15. pkt-line: allow writing of LARGE_PACKET_MAX buffersJeff King, Dec 10, 2014
  16. Eric SunshineDec 10, 2014
  17. Eric SunshineDec 10, 2014
  18. Jeff KingDec 10, 2014
  19. Johannes SixtDec 9, 2014
  20. Jeff KingDec 9, 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.