Please sign in to comment.
Refactor git_set_argv0_path() to git_extract_argv0_path()
This commit moves the code that computes the dirname of argv from git.c's main() to git_set_argv0_path() and renames the function to git_extract_argv0_path(). This makes the code in git.c's main less cluttered, and we can use the dirname computation from other main() functions too. [ spr: - split Steve's original commit and wrote new commit message. - Integrated Johannes Schindelin's cca1704 while rebasing onto master. ] Signed-off-by: Steve Haslam <email@example.com> Signed-off-by: Steffen Prohaska <firstname.lastname@example.org> Acked-by: Johannes Sixt <email@example.com> Signed-off-by: Junio C Hamano <firstname.lastname@example.org>
- Loading branch information...
Showing with 19 additions and 18 deletions.