- if (start_command(&ec_process)) {
- fprintf(stderr, "Failed to start emacsclient.\n");
- return -1;
- }
+ if (start_command(&ec_process))
+ return error("Failed to start emacsclient.");
+
finish_command(&ec_process);
if (prefixcmp(buffer.buf, "emacsclient")) {
finish_command(&ec_process);
if (prefixcmp(buffer.buf, "emacsclient")) {
}
strbuf_remove(&buffer, 0, strlen("emacsclient"));
version = atoi(buffer.buf);
if (version < 22) {
}
strbuf_remove(&buffer, 0, strlen("emacsclient"));
version = atoi(buffer.buf);
if (version < 22) {
* old_path, the ':' at the end will let 'man' to try
* system-wide paths after ours to find the manual page. If
* there is old_path, we need ':' as delimiter. */
* old_path, the ':' at the end will let 'man' to try
* system-wide paths after ours to find the manual page. If
* there is old_path, we need ':' as delimiter. */
strbuf_addch(&new_path, ':');
if (old_path)
strbuf_addstr(&new_path, old_path);
strbuf_addch(&new_path, ':');
if (old_path)
strbuf_addstr(&new_path, old_path);
execlp("info", "info", "gitman", page, NULL);
}
execlp("info", "info", "gitman", page, NULL);
}
{
execl_git_cmd("web--browse", "-c", "help.browser", path, NULL);
}
{
execl_git_cmd("web--browse", "-c", "help.browser", path, NULL);
}
setup_git_directory_gently(&nongit);
git_config(git_help_config, NULL);
setup_git_directory_gently(&nongit);
git_config(git_help_config, NULL);
- argc = parse_options(argc, argv, builtin_help_options,
+ argc = parse_options(argc, argv, prefix, builtin_help_options,