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 <firstname.lastname@example.org> Signed-off-by: Steffen Prohaska <email@example.com> Acked-by: Johannes Sixt <firstname.lastname@example.org> Signed-off-by: Junio C Hamano <email@example.com>
- Loading branch information...
Showing with 19 additions and 18 deletions.