A trivial script to scrub ChangeLog changes from "git show"
David Malcolm
dmalcolm@redhat.com
Wed May 22 20:10:00 GMT 2013
I've been writing some automation around testing gcc patches, and kept
running into ChangeLog conflicts, so I wrote the following to make it
easier.
The attached one-liner wraps "git show" into a form that omits changes
to ChangeLog files, for use when generating patches from a git repo,
so that you can run things like:
# Get last commit, omitting ChangeLog changes:
./contrib/git-show-non-changelog.sh
# Get a specific commit, omitting ChangeLog changes:
./contrib/git-show-non-changelog.sh 60623f1616b3144310f432174ebbb3e2cc6dff28
# Get all my non-pushed changes, omitting ChangeLog changes:
./contrib/git-show-non-changelog.sh origin/master..
etc
If there's a pre-existing way of doing this, I'm all ears, naturally [1]
OK for trunk? (and of course, the contrib/ChangeLog entry will no doubt
conflict, irony of ironies).
Dave
[1] gnulib appears to have a "git-merge-changelog", but that requires
building/installing it at the receiving end
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-contrib-git-show-non-changelog.sh.patch
Type: text/x-patch
Size: 1687 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130522/d79ba83c/attachment.bin>
More information about the Gcc-patches
mailing list