]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'jk/git-prompt'
authorJunio C Hamano <gitster@pobox.com>
Thu, 22 Dec 2011 19:27:23 +0000 (11:27 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Dec 2011 19:27:23 +0000 (11:27 -0800)
* jk/git-prompt:
  contrib: add credential helper for OS X Keychain
  Makefile: OS X has /dev/tty
  Makefile: linux has /dev/tty
  credential: use git_prompt instead of git_getpass
  prompt: use git_terminal_prompt
  add generic terminal prompt function
  refactor git_getpass into generic prompt function
  move git_getpass to its own source file
  imap-send: don't check return value of git_getpass
  imap-send: avoid buffer overflow

Conflicts:
Makefile

1  2 
Makefile
cache.h
connect.c
imap-send.c

diff --cc Makefile
index 9470a1034396a5f3ee36c5d0e6ffc54e21bb3820,4449cc8f7d9b82e4f83dac2cff8e086c40802391..a782409306df85985e1f465eab4bd3cd7fa2cc83
+++ b/Makefile
@@@ -855,7 -837,7 +862,8 @@@ ifeq ($(uname_S),Linux
        NO_STRLCPY = YesPlease
        NO_MKSTEMPS = YesPlease
        HAVE_PATHS_H = YesPlease
 +      LIBC_CONTAINS_LIBINTL = YesPlease
+       HAVE_DEV_TTY = YesPlease
  endif
  ifeq ($(uname_S),GNU/kFreeBSD)
        NO_STRLCPY = YesPlease
@@@ -1681,10 -1653,10 +1690,14 @@@ ifdef HAVE_PATHS_
        BASIC_CFLAGS += -DHAVE_PATHS_H
  endif
  
 +ifdef HAVE_LIBCHARSET_H
 +      BASIC_CFLAGS += -DHAVE_LIBCHARSET_H
 +endif
 +
+ ifdef HAVE_DEV_TTY
+       BASIC_CFLAGS += -DHAVE_DEV_TTY
+ endif
  ifdef DIR_HAS_BSD_GROUP_SEMANTICS
        COMPAT_CFLAGS += -DDIR_HAS_BSD_GROUP_SEMANTICS
  endif
diff --cc cache.h
Simple merge
diff --cc connect.c
Simple merge
diff --cc imap-send.c
Simple merge