]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jk/reduce-malloc-in-v2-servers'
authorJunio C Hamano <gitster@pobox.com>
Tue, 28 Sep 2021 20:06:53 +0000 (13:06 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Sep 2021 20:06:53 +0000 (13:06 -0700)
Code cleanup to limit memory consumption and tighten protocol
message parsing.

* jk/reduce-malloc-in-v2-servers:
  ls-refs: reject unknown arguments
  serve: reject commands used as capabilities
  serve: reject bogus v2 "command=ls-refs=foo"
  docs/protocol-v2: clarify some ls-refs ref-prefix details
  ls-refs: ignore very long ref-prefix counts
  serve: drop "keys" strvec
  serve: provide "receive" function for session-id capability
  serve: provide "receive" function for object-format capability
  serve: add "receive" method for v2 capabilities table
  serve: return capability "value" from get_capability()
  serve: rename is_command() to parse_command()

1  2 
Documentation/technical/protocol-v2.txt
ls-refs.c

diff --cc ls-refs.c
Simple merge