running git log on windows needs double quotes not single ones
kryton opened this issue · 2 comments
git log --all --numstat --date=short --pretty=format:"--%h--%ad--%aN" --no-renames
produces a file
`
-aa208775--2017-10-26--araut
2 0 src/main/java/com/xxx/yyy/repository/z1.java
23 0 src/main/java/com/xxx/yy/rest/z2.java
30 0 src/main/java/com/xxx/yy/service/z3.java
47 0 src/main/resources/swagger.yml
37 0 src/test/java/com/xxx/yy/rest/z4.java
--c1ffc53b--2017-10-26--Prasad xxx
`
while with single quotes
git log --all --numstat --date=short --pretty=format:'--%h--%ad--%aN' --no-renames
produces
'--aa208775--2017-10-26--araut' 2 0 src/main/java/com/xxx/yyy/repository/z1.java 23 0 src/main/java/com/xxx/yy/rest/z2.java 30 0 src/main/java/com/xxx/yy/service/z3.java 47 0 src/main/resources/swagger.yml 37 0 src/test/java/com/xxx/yy/rest/z4.java '--c1ffc53b--2017-10-26--Prasad xxx'
(note the quotes around the author/date bit)..
the parser will not parse the 2nd option sadly.
Thanks for pointing this out! I always recommend running the Git commands in a Git BASH when on Windows, and I could extend the documentation with that info. What shell did you use?
runMaat.cmd.txt
I'm using the regular 'cmd' (see attached)