Skip to content

Instantly share code, notes, and snippets.

@martyngigg
Last active August 29, 2015 14:20
Show Gist options
  • Save martyngigg/b170e19929e86d412ede to your computer and use it in GitHub Desktop.
Save martyngigg/b170e19929e86d412ede to your computer and use it in GitHub Desktop.
Generate Release Changes

Algorithms:

Assumes the header file has version() in it:

git diff --name-only --diff-filter=A v3.3.0 HEAD | grep -v 'Test.h'| grep -E ".h$" | xargs grep -l -E "^.*version\(\).*" | sed -r -e 's@.*/(.*).h@\1@g' | sort | sed -r -e 's@(.*)@* [http://docs.mantidproject.org/algorithms/\1 \1]@g'`

Change --diff-filter=A to --diff-filter=M for changed algorithms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment