Reputation: 3175
How can I use git log --pretty=format""
to output a git log in this format
timestamp|username|type|file
1275543595|andrew|A|src/main.cpp
Upvotes: 0
Views: 357
Reputation: 1491
Am i correct in assuming that you are trying to get this format so you can have gource parse it ?
if so, check out : https://github.com/whitewhidow/live-git-for-gource/blob/master/git-live.sh
wich already does this, also, just check the code, so you can figure out how to get the correct format, in case you needed it for something else ..
Upvotes: 0
Reputation: 1
Crude, but gets the job done
git log --name-status --format='%ct|%an' hulu.sh |
sed 'N;N;s/\n/|/;s///;s/\t/|/'
|
|
1363415345|Steven Penny|M|hulu.sh
1363403048|Steven Penny|M|hulu.sh
1363278409|Steven Penny|M|hulu.sh
1363201389|Steven Penny|M|hulu.sh
1363158212|Steven Penny|M|hulu.sh
Upvotes: 0