Skip to content
Commits on May 8, 2013
  1. @jrn @gitster

    mingw: rename WIN32 cpp macro to GIT_WINDOWS_NATIVE

    jrn committed with gitster May 2, 2013
    Throughout git, it is assumed that the WIN32 preprocessor symbol is
    defined on native Windows setups (mingw and msvc) and not on Cygwin.
    On Cygwin, most of the time git can pretend this is just another Unix
    machine, and Windows-specific magic is generally counterproductive.
    Unfortunately Cygwin *does* define the WIN32 symbol in some headers.
    Best to rely on a new git-specific symbol GIT_WINDOWS_NATIVE instead,
    defined as follows:
    	#if defined(WIN32) && !defined(__CYGWIN__)
    	# define GIT_WINDOWS_NATIVE
    After this change, it should be possible to drop the
    CYGWIN_V15_WIN32API setting without any negative effect.
    Signed-off-by: Jonathan Nieder <>
    Signed-off-by: Ramsay Jones <>
    Signed-off-by: Junio C Hamano <>
Commits on Nov 10, 2009
  1. @jrn @gitster

    diff --no-index: make the usage string less scary

    jrn committed with gitster Nov 9, 2009
    Start the diff --no-index usage string with "usage:" instead of
    Signed-off-by: Jonathan Nieder <>
    Signed-off-by: Junio C Hamano <>
Something went wrong with that request. Please try again.