Our git process involves merging features into development, from feature branches, and when stable, these get merged into master.
If a bug is found in a feature, that branch is reverted from development making it a little difficult to figure out what is finally going into master.
I was thinking of a simple shell script to generate a list of merges (that were not reverted), that are in development, but not in master, but cant figure out how to generate this. I know it can be done using basic git and bash, so any pointers would be much appreciated.
Update:
From the answer here, I could get something close with:
git rev-list release_2013_05_20 --not master --merges | xargs -L1 git name-rev | grep -oE '[0-9a-f]{40}\s[^\~\^]*'
But this shows multiple entries if a feature was reverted, and then merged back again.