We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 268cce6 commit 006d821Copy full SHA for 006d821
tools/windows/workspace-status.cmd
@@ -0,0 +1,20 @@
1
+@setlocal enabledelayedexpansion
2
+@echo off
3
+
4
+@rem find git.exe
5
+for /F "tokens=* USEBACKQ" %%F in (`where git.exe`) do (
6
+ set "GIT=%%F"
7
+ break
8
+)
9
10
+@rem Git's bash is located at %GITINSTALLDIR%\bin\bash.exe
11
+@rem Git's git.exe is typically located at %GITINSTALLDIR%\cmd\git.exe or
12
+@rem %GITINSTALLDIR%\mingw64\bin\git.exe.
13
+set "_GITEXEDIR=%GIT:\cmd\git.exe=%"
14
+set "GITEXEDIR=%_GITEXEDIR:\mingw64\bin\git.exe=%"
15
+set "BASH=%GITEXEDIR%\bin\bash.exe"
16
17
+@rem Change to the directory of this script (tools/windows) to
18
+@rem run bash script in (tools/unix).
19
+cd "%~dp0"
20
+"%BASH%" -c ../unix/workspace-status.sh
0 commit comments