From: Christian Couder Date: Sun, 4 Sep 2016 20:18:30 +0000 (+0200) Subject: apply: refactor `git apply` option parsing X-Git-Tag: v2.11.0-rc0~144^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7e1bad24e3b7f220813d8a449f19652113edb923?hp=7e1bad24e3b7f220813d8a449f19652113edb923 apply: refactor `git apply` option parsing Parsing `git apply` options can be useful to other commands that want to call the libified apply functionality, because this way they can easily pass some options from their own command line to the libified apply functionality. This will be used by `git am` in a following patch. To make this possible, let's refactor the `git apply` option parsing code into a new libified apply_parse_options() function. Doing that makes it possible to remove some functions definitions from "apply.h" and make them static in "apply.c". Helped-by: Ramsay Jones Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano ---