Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running git log on windows needs double quotes not single ones #49

Open
kryton opened this issue Oct 26, 2017 · 2 comments
Open

running git log on windows needs double quotes not single ones #49

kryton opened this issue Oct 26, 2017 · 2 comments

Comments

@kryton
Copy link

kryton commented Oct 26, 2017

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.

@adamtornhill
Copy link
Owner

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?

@kryton
Copy link
Author

kryton commented Nov 9, 2017

runMaat.cmd.txt
I'm using the regular 'cmd' (see attached)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants