Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid using a git hook #15

Open
ktdreyer opened this issue Sep 6, 2017 · 1 comment
Open

avoid using a git hook #15

ktdreyer opened this issue Sep 6, 2017 · 1 comment

Comments

@ktdreyer
Copy link
Member

ktdreyer commented Sep 6, 2017

Rather than installing a .git/hooks/prepare-commit-msg file, downstream-cherry-picker should dynamically modify the commit message on the fly during each run.

Some developers have a .git/hooks/prepare-commit-msg file already, and it may have different contents. It would also reduce the things that could go wrong if we cannot install the Gist for some reason, or if we ever have to distribute updates to that Gist.

Alfredo used the following to modify his commit messages to add a "ceph-volume: " prefix:

git filter-branch -f --msg-filter 'sed "s/^/ceph-volume: /"' 6a342e79a1..HEAD

We should do something similar with filter-branch.

@alfredodeza
Copy link

For appending at the end I've used:

git filter-branch -f --msg-filter 'cat && echo "\nResolves: rhbz#1485011\n"' master..HEAD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants