I think this'll do what you want
git show --no-patch --oneline
git show <commit> --oneline not showing oneline
Question
I am using version 1.8.3 of mysysgit and it seems that the --oneline command does not give me just one line per commit, I get all of the diff lines as well.
git show HEAD --oneline
and even git show HEAD --pretty="%h %s"
do not give just one line.
(note: same results using both git bash and posh git)
The reason I want the show --oneline is I want to pipe the results of a rev-list query into it from posh git.
git rev-list <somestuff> | %{git show $_ --oneline}
Solution
OTHER TIPS
May
git log HEAD --oneline --no-walk
is what you want.
BTW, there is --pretty
and --oneline
the same as git log
in git rev-list
, maybe the pipe is unnecessary.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow