mirror of
https://github.com/git/git.git
synced 2026-02-05 15:34:07 +00:00
Merge 'refs/rewritten/junio/notyet' into HEAD
This commit is contained in:
8
Makefile
8
Makefile
@@ -1130,13 +1130,11 @@ else
|
||||
REMOTE_CURL_NAMES = $(REMOTE_CURL_PRIMARY) $(REMOTE_CURL_ALIASES)
|
||||
PROGRAM_OBJS += http-fetch.o
|
||||
PROGRAMS += $(REMOTE_CURL_NAMES)
|
||||
curl_check := $(shell (echo 070908; curl-config --vernum) 2>/dev/null | sort -r | sed -ne 2p)
|
||||
ifeq "$(curl_check)" "070908"
|
||||
ifndef NO_EXPAT
|
||||
ifndef NO_EXPAT
|
||||
ifndef NO_CURL_MULTI
|
||||
PROGRAM_OBJS += http-push.o
|
||||
endif
|
||||
endif
|
||||
ifndef NO_EXPAT
|
||||
|
||||
ifdef EXPATDIR
|
||||
BASIC_CFLAGS += -I$(EXPATDIR)/include
|
||||
EXPAT_LIBEXPAT = -L$(EXPATDIR)/$(lib) $(CC_LD_DYNPATH)$(EXPATDIR)/$(lib) -lexpat
|
||||
|
||||
@@ -874,6 +874,9 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
|
||||
if (len > 4 && is_dir_sep(pager[len - 5]))
|
||||
pager += len - 4;
|
||||
|
||||
if (opt.ignore_case && !strcmp("less", pager))
|
||||
string_list_append(&path_list, "-I");
|
||||
|
||||
if (!strcmp("less", pager) || !strcmp("vi", pager)) {
|
||||
struct strbuf buf = STRBUF_INIT;
|
||||
strbuf_addf(&buf, "+/%s%s",
|
||||
|
||||
11
configure.ac
11
configure.ac
@@ -513,6 +513,17 @@ AC_CHECK_LIB([curl], [curl_global_init],
|
||||
[NO_CURL=],
|
||||
[NO_CURL=YesPlease])
|
||||
|
||||
if test -z "$NO_CURL"; then
|
||||
|
||||
AC_CHECK_DECLS([curl_multi_init],
|
||||
[NO_CURL_MULTI=],
|
||||
[NO_CURL_MULTI=UnfortunatelyYes],
|
||||
[[#include <curl/curl.h>]])
|
||||
|
||||
GIT_CONF_SUBST([NO_CURL_MULTI])
|
||||
|
||||
fi
|
||||
|
||||
GIT_UNSTASH_FLAGS($CURLDIR)
|
||||
|
||||
GIT_CONF_SUBST([NO_CURL])
|
||||
|
||||
Reference in New Issue
Block a user