Re: [PATCH] exec_cmd.c: use find_last_dir_sep() for code simplification

2016-02-19 Thread Junio C Hamano
Alexander Kuleshov writes: > We are trying to extract dirname from argv0 in the git_extract_argv0_path(). > But in the same time, the provides find_last_dir_sep() > to get dirname from a given path. Let's use it instead of loop for the code > simplification. > > Signed-off-by: Alexander Kulesho

[PATCH] exec_cmd.c: use find_last_dir_sep() for code simplification

2016-02-19 Thread Alexander Kuleshov
We are trying to extract dirname from argv0 in the git_extract_argv0_path(). But in the same time, the provides find_last_dir_sep() to get dirname from a given path. Let's use it instead of loop for the code simplification. Signed-off-by: Alexander Kuleshov --- exec_cmd.c | 6 ++ 1 file ch