pack-objects: mark index-version option as NONEG
commitf53c163bcd7ae9bf83aa87be81dc6a4661924f3e
authorJeff King <peff@peff.net>
Mon, 5 Nov 2018 06:39:38 +0000 (5 01:39 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Nov 2018 03:55:35 +0000 (6 12:55 +0900)
tree360a6c3787a6a2ba869bf5538887d8b68ee94422
parentccf659e87c8fdb4edb5d2653c53bc9062c8eee76
pack-objects: mark index-version option as NONEG

Running "git pack-objects --no-index-version" will segfault, since the
callback is not prepared to handle the "unset" flag.

In theory this might be used to counteract an earlier "--index-version",
or override a pack.indexversion config setting. But the semantics aren't
immediately obvious, and it's unlikely anybody wants this. Let's just
disable the broken option for now.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pack-objects.c