Git show <commit> --online does not show oneline

I am using mysysgit version 1.8.3 and it seems that the -oneline command does not give me just one line per commit, I also get all diff lines.

git show HEAD --oneline 

and even git show HEAD --pretty="%h %s"

do not give only one line.

(note: the same results use both git bash and posh git)

The reason I want to show is because I want to pass the results of the rev-list request to posh git.

 git rev-list <somestuff> | %{git show $_ --oneline} 
+11
git msysgit
source share
2 answers

May

 git log HEAD --oneline --no-walk 

- Is this what you want.

By the way, there is --pretty and --oneline the same as git log in git rev-list , perhaps the pipe is not needed.

+12
source share

I think this will do what you want, git show --no-patch --oneline

0
source share

All Articles