Skip to content

Commit

Permalink
Fixed missing escape characters in git-windows/vc.bat. Fixes rohieb#2.
Browse files Browse the repository at this point in the history
These extra escape characters are needed in the git pretty format so
they are not replaced by variables in the batch script.

Signed-off-by: Nathaniel Struselis <Nathaniel.Struselis@hotmail.co.uk>
  • Loading branch information
NathanielJS1541 committed Sep 7, 2024
1 parent 8c8e2eb commit e597388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-windows/vc.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if "%1" NEQ "" (
)
REM English locale.
set LC_ALL=C
git --no-pager log -1 HEAD --pretty=format:"Hash: %H%nAbr. Hash: %h%nParent Hashes: %P%nAbr. Parent Hashes: %p%nAuthor Name: %an%nAuthor Email: %ae%nAuthor Date: %ai%nCommitter Name: %cn%nCommitter Email: %ce%nCommitter Date: %ci%n" |gawk -v script=log -v full=%full% -f vc-git.awk > vc.tex
git --no-pager log -1 HEAD --pretty=format:"Hash: %%H%%nAbr. Hash: %%h%%nParent Hashes: %%P%%nAbr. Parent Hashes: %%p%%nAuthor Name: %%an%%nAuthor Email: %%ae%%nAuthor Date: %%ai%%nCommitter Name: %%cn%%nCommitter Email: %%ce%%nCommitter Date: %%ci%%n" |gawk -v script=log -v full=%full% -f vc-git.awk > vc.tex
if "%mod%"=="1" (
git status --porcelain=v1 |gawk -v script=status -f vc-git.awk >> vc.tex
)

0 comments on commit e597388

Please sign in to comment.