diff-parseopt: convert --[no-]abbrev
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 24 Mar 2019 08:20:04 +0000 (15:20 +0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Mar 2019 13:21:22 +0000 (22:21 +0900)
commitd877418390168c9696fd46d5e78ca3362f26f74c
tree822a8c0457a95d8b171689c528d98036198eba87
parentd2d3f27300967e76e0c9f3a916e7e236ff95f1aa
diff-parseopt: convert --[no-]abbrev

OPT__ABBREV() has the same behavior as the deleted code with one
difference: it does check for valid number and error out if not. And the
'40' change is self explanatory.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c
parse-options-cb.c