i want to create an automatic release notes mechanizem.
what i’m trying to do is before each deploy go over all the commits i made using git and generate a commit logs from it.
i already looked here: http://gitref.org/inspect/#log and found out commands like:
git log --oneline --before={3.weeks.ago} --after={2010-04-18} --no-merges
the problem is that i don’t know the dates nor author or any other filtering. the only thing i can know is that this is a new doploy so i need a way to store some index upon each deploy and grep all the commits since the last index. i’m using github as hosting.
is there a way to do that?
ok – so you need a range, but you say you don’t know ‘date or author’, but you should know the commit sha at least?
where XXXX is your commit
or like
Ikkesays use tags instead, every time you release to production, tag with a build number, so then you just need the last production tag and the new production tag.
Leaving this section in case someone finds useful: not the answer but related to git log
just grabbed some code from my .gitconfig and merged it with what you have
my .gitconfig alias for
git l