Improved list-commits.ps1

This commit is contained in:
Markus Fleschutz 2021-03-10 16:18:48 +01:00
parent 71d4dff132
commit 026b81cb9a

View File

@ -21,7 +21,7 @@ try {
if ($lastExitCode -ne "0") { throw "'git fetch --all --recurse-submodules' failed" }
if ($Format -eq "compact") {
& git log --pretty=format:'%Cred%h%Creset %C(yellow)%d%Creset %s %C(bold blue)by %an %cr%Creset' --abbrev-commit
& git log --graph --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %C(bold blue)by %an %cr%Creset' --abbrev-commit
} else {
& git log
}