Re: [PATCH v2] difftool: Change prompt to display the number of files in the diff queue

2013-12-04 Thread Junio C Hamano
Eric Sunshine sunsh...@sunshineco.com writes: + setenv (GIT_DIFF_PATH_COUNTER, counterstr.buf, 1); + setenv (GIT_DIFF_PATH_TOTAL, totalstr.buf, 1); + retval = run_command_v_opt(spawn_arg, RUN_USING_SHELL); Would run_command_v_opt_cd_env() be more appropriate than

[PATCH v2] difftool: Change prompt to display the number of files in the diff queue

2013-12-03 Thread Zoltan Klinger
When --prompt option is set, git-difftool displays a prompt for each modified file to be viewed in an external diff program. At that point it could be useful to display a counter and the total number of files in the diff queue. Below is the current difftool prompt for the first of 5 modified