source:
lab.git/misc/git.cmd
@
41617a0
Last change on this file since 41617a0 was a696331, checked in by mitty <mitty@…>, 12 years ago | |
---|---|
|
|
File size: 238 bytes |
Rev | Line | |
---|---|---|
[b14ab8e] | 1 | @echo off |
2 | ||
3 | set DEFAULT=$P$G | |
4 | ||
5 | git.exe %* | |
6 | ||
7 | ||
8 | git.exe branch > NUL 2>&1 | |
9 | if %ERRORLEVEL% EQU 128 goto norepos | |
10 | ||
11 | ||
[a696331] | 12 | for /f "tokens=2" %%i in ('git.exe branch') do set BRANCH=%%i |
[b14ab8e] | 13 | prompt $P (%BRANCH%) $G |
14 | ||
15 | goto end | |
16 | ||
17 | ||
18 | :norepos | |
19 | prompt %DEFAULT% | |
20 | ||
21 | ||
22 | :end |
Note: See TracBrowser
for help on using the repository browser.