Very Easy Changelogs with Git
tech.pro
Very Easy Changelogs with Git
1–6 of 6 posts
Re: Very Easy Changelogs with Git
#2Re: Very Easy Changelogs with Git
#3With "--first-parent", git-log only follows the left-hand (first) parent, thus listing the shortened history, by skipping over the right-hand ancestors of merge commits.
Re: Very Easy Changelogs with Git
#4That said, if your history works with this model, then it's a handy tip :)
Re: Very Easy Changelogs with Git
#5Worth mentioning is "--first-parent" argument to git-log, which is usefull when using git-merge --no-ff to keep clean history with summary commits. With "--first-parent" , git-log only follows the left-hand (first) parent, thus listing the shortened history, by skipping over the right-hand ancestors of merge commits.
Re: Very Easy Changelogs with Git
#6http://git-scm.com/book/en/Git-Basics-Viewing-the-Commit-His...
I once needed a ChangeLog file, so I wrote this:
# create ChangeLog file out of git history
alias g.changelog="git --no-pager log --format=\"%ai %aN %n%n%x09* %s%d%n\" | sed \"s/\\ \/*/g\" > ChangeLog"
g.ch completes it for me in zsh.