I'm looking for a list containing:
- Date
- Branch Name
For all branches coming off 'develop' with 'release' in the name.
similar to
2014-03-11 10:52:04 +0100 9 months ago release-1.0
2014-03-28 10:33:23 +0100 8 months ago release-2.0
2014-04-02 10:40:59 +0200 8 months ago release-3.0
2014-04-18 17:01:54 +0200 8 months ago release-3.0.1
2014-05-05 15:25:31 +0200 7 months ago release-3.0.2
I've found several answers which have really helped me, and now I'm stumbling on syntax. Useful information was:
- Finding Tail
- Show active git branches by date (note that I'm looking for the commit at which the branch was made)
- This comment in another post
So far I have the following as an alias in bash
for k in `git branch|sed s/^..//`;
do echo -e `git log -1 --pretty=format:"%Cgreen%ci %Cblue%cr %Creset"
<(`diff -u <(git rev-list --first-parent "$k") <(git rev-list --first-parent develop)|sed -ne '"'"'s/^ //p'"'"'|head -1`)
--`\\t"$k";
done|sort;'
running each part of this individually works. But not altogether.
So these work:
git branch|sed s/^..//
git log -1 --pretty=format:"%Cgreen%ci %Cblue%cr %Creset" release-3.0
diff -u <(git rev-list --first-parent release-3.0) <(git rev-list --first-parent develop)
But not when I put them together.
Help?