Re: [PATCH] git.c: simplify striping extension of a file in handle_builtin()

2016-02-21 Thread Eric Sunshine
On Sat, Feb 20, 2016 at 9:27 AM, Alexander Kuleshov wrote: > git.c: simplify striping extension of a file in handle_builtin() s/striping/stripping/g (Note the '/g' above.) The patch itself looks okay. > The handle_builtin() starts from striping of command extension if > STRIP_EXTENSION is enab

[PATCH] git.c: simplify striping extension of a file in handle_builtin()

2016-02-20 Thread Alexander Kuleshov
The handle_builtin() starts from striping of command extension if STRIP_EXTENSION is enabled. Actually STRIP_EXTENSION does not used anywhere else. This patch introduces strip_extension() helper to strip STRIP_EXTENSION extension from argv[0] with the strip_suffix() instead of manually striping.