From c8e2db00f9622af6e5f640443dfbe63bb1af39e0 Mon Sep 17 00:00:00 2001 From: Mark Hollomon Date: Wed, 15 Mar 2006 22:51:41 +0000 Subject: [PATCH 1/2] Let merge set the default strategy. If the user does not set a merge strategy for git-pull, let git-merge calculate a default strategy. [jc: with minor stylistic tweaks] Signed-off-by: Mark Hollomon Signed-off-by: Junio C Hamano --- git-pull.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/git-pull.sh b/git-pull.sh index 6caf1aad47..17fda26721 100755 --- a/git-pull.sh +++ b/git-pull.sh @@ -71,19 +71,15 @@ case "$merge_head" in ;; ?*' '?*) var=`git repo-config --get pull.octopus` - if test '' = "$var" + if test -n "$var" then - strategy_default_args='-s octopus' - else strategy_default_args="-s $var" fi ;; *) var=`git repo-config --get pull.twohead` - if test '' = "$var" - then - strategy_default_args='-s recursive' - else + if test -n "$var" + then strategy_default_args="-s $var" fi ;; From 6169858d19b0ee01a549d83f222c097549968d66 Mon Sep 17 00:00:00 2001 From: "Randal L. Schwartz" Date: Wed, 15 Mar 2006 15:35:06 -0800 Subject: [PATCH 2/2] fix imap-send for OSX This patch works... I've been using it to stay current. Signed-off-by: Junio C Hamano --- imap-send.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imap-send.c b/imap-send.c index 1b38b3af67..e33c78bff2 100644 --- a/imap-send.c +++ b/imap-send.c @@ -372,7 +372,7 @@ free_generic_messages( message_t *msgs ) } static int -vasprintf( char **strp, const char *fmt, va_list ap ) +git_vasprintf( char **strp, const char *fmt, va_list ap ) { int len; char tmp[1024]; @@ -402,7 +402,7 @@ nfsnprintf( char *buf, int blen, const char *fmt, ... ) static int nfvasprintf( char **str, const char *fmt, va_list va ) { - int ret = vasprintf( str, fmt, va ); + int ret = git_vasprintf( str, fmt, va ); if (ret < 0) die( "Fatal: Out of memory\n"); return ret;