anchor.diff:  ::      files only. This prevents excessive copying when none of the docs
   ::      actually changed.
   :: /y : Don't prompt for overwrites (yes)
  -if defined GIT_PORTABLE_FLOW (
  -  xcopy /i /q /d /y "%WIN_TOOLS_ROOT_DIR%\man\html\*" "%GIT_INST_DIR%\mingw64\share\doc\git-doc" > NUL
  -)
  +xcopy /i /q /d /y "%WIN_TOOLS_ROOT_DIR%\man\html\*" "%GIT_INST_DIR%\mingw64\share\doc\git-doc" > NUL
  +
   goto :SVN_CHECK
   
   :GIT_FAIL
  
positive.code: :: (parens) are necessary, otherwise batch puts an extra space after 32.
  reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | %FIND_EXE% /i "x86" > NUL && (set OS_BITS=32) || (set OS_BITS=64)
  
  if not exist "%WIN_TOOLS_ROOT_DIR%\.git_bleeding_edge" goto :GIT_OLD_FLOW
  set GIT_PORTABLE_FLOW=1
  set GIT_VERSION=2.7.4-%OS_BITS%
  set GIT_FETCH_URL=https://commondatastorage.googleapis.com/chrome-infra/PortableGit-%GIT_VERSION%-bit.7z.exe
  set GIT_DOWNLOAD_PATH=%ZIP_DIR%\git.7z.exe
  set GIT_BIN_DIR=git-%GIT_VERSION%_bin
  set GIT_INST_DIR=%WIN_TOOLS_ROOT_DIR%\%GIT_BIN_DIR%
  set GIT_EXE_PATH=%GIT_INST_DIR%\bin\git.exe
  goto :GIT_CLEANUP
  
  :GIT_OLD_FLOW
  set GIT_VERSION=1.9.5.chromium.6%XP_SUFFIX%
  set GIT_BIN_DIR=git-%GIT_VERSION%_bin
  set GIT_FETCH_URL=https://commondatastorage.googleapis.com/chrome-infra/%GIT_BIN_DIR%.zip
  set GIT_DOWNLOAD_PATH=%ZIP_DIR%\git.zip
  set GIT_INST_DIR=%WIN_TOOLS_ROOT_DIR%\%GIT_BIN_DIR%
  set GIT_EXE_PATH=%GIT_INST_DIR%\cmd\git.cmd
  
  :GIT_CLEANUP
  :: Clean up any release which doesn't match the one we want.
  for /d %%i in ("%WIN_TOOLS_ROOT_DIR%\git-*_bin") do (
    if not "%%i" == "%WIN_TOOLS_ROOT_DIR%\git-%GIT_VERSION%_bin" (
  
negative.code:   if errorlevel 1 goto :GIT_MAKE_BATCH_FILES
    goto :SYNC_GIT_HELP_FILES
  )
  
  :GIT_INSTALL
  echo Installing git %GIT_VERSION% (avg 1-2 min download) ...
  
  if exist "%GIT_DOWNLOAD_PATH%" del "%GIT_DOWNLOAD_PATH%"
  echo Fetching from %GIT_FETCH_URL%
  cscript //nologo //e:jscript "%~dp0get_file.js" %GIT_FETCH_URL% "%GIT_DOWNLOAD_PATH%"
  