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

Update README.md #121

Merged
merged 1 commit into from
Apr 7, 2022
Merged

Update README.md #121

merged 1 commit into from
Apr 7, 2022

Conversation

aesteve-rh
Copy link
Member

Update old repositories list and add Fedora specific packages.

Copy link
Member

@nirs nirs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@nirs nirs requested a review from barpavel April 7, 2022 14:54
@nirs
Copy link
Member

nirs commented Apr 7, 2022

@aesteve-rh please also add:

Signed-off-by: Albert Esteve <aesteve@redhat.com>

To the commit message. For this commit, the best way is:

git commit --amend --signoff

For next commits, modify your .git/hooks/commit-msg to add this automatically:

$ cat .git/hooks/commit-msg
#!/bin/sh

# Add signed-off-by lines
SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"

I guess this is another thing missing in the project documentation. I think this is documented
in ovirt.org somewhere, but having it in the project docs is better.

@aesteve-rh aesteve-rh force-pushed the patch_readme branch 2 times, most recently from f4ff3ab to 923e850 Compare April 7, 2022 15:16
README.md Outdated Show resolved Hide resolved
nirs
nirs previously approved these changes Apr 7, 2022
Copy link
Member

@nirs nirs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately I updated the branch in the wrong way, and now we need to rebase your local branch and push it again to remove the merge commit.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
@mz-pdm
Copy link
Member

mz-pdm commented Apr 7, 2022

For next commits, modify your .git/hooks/commit-msg to add this automatically:

In the sample default hooks created by git init, at least on my system, it's recommended to use prepare-commit-msg hook (which makes sense) to insert Signed-off-by:. It also includes (somewhat different) code that one can uncomment to insert it.

They also say that inserting Signed-off-by in hooks is not a good idea but they don't say why. I think using the hook is OK.

@nirs
Copy link
Member

nirs commented Apr 7, 2022

For next commits, modify your .git/hooks/commit-msg to add this automatically:

In the sample default hooks created by git init, at least on my system, it's recommended to use prepare-commit-msg hook (which makes sense) to insert Signed-off-by:. It also includes (somewhat different) code that one can uncomment to insert it.

I never tried the prepare-commit-msg hook. What is the advantage?

Using the code added by git init sounds better. The code I added came from the oVirt
commit-msg hook linked from ovirt.org.

They also say that inserting Signed-off-by in hooks is not a good idea but they don't say why. I think using the hook is OK.

It will be best to eliminate this header, the semantics of the header are not clear
and I think we just waste time and make it harder for new contributors when we require
it.

@mz-pdm
Copy link
Member

mz-pdm commented Apr 7, 2022

I never tried the prepare-commit-msg hook. What is the advantage?

That you see it in the commit message already when you write it.

It will be best to eliminate this header, the semantics of the header are not clear and I think we just waste time and make it harder for new contributors when we require it.

I agree, I doubt it serves a useful purpose nowadays. In case we need some confirmation from contributors (do we?), it's easier to have it as a part of the PR template.

@nirs
Copy link
Member

nirs commented Apr 7, 2022

I never tried the prepare-commit-msg hook. What is the advantage?

That you see it in the commit message already when you write it.

Nicer.

It will be best to eliminate this header, the semantics of the header are not clear and I think we just waste time and make it harder for new contributors when we require it.

I agree, I doubt it serves a useful purpose nowadays. In case we need some confirmation from contributors (do we?), it's easier to have it as a part of the PR template.

PR template is not part of the source, not sure how useful it is.

Lets move the discussion about the "signed-of-by" to the devel mailing list.

@nirs nirs merged commit d982426 into oVirt:master Apr 7, 2022
@barpavel
Copy link
Member

After the patch is merged, you can delete the patch_readme branch from both github and locally (with git branch -D patch_readme).

@aesteve-rh aesteve-rh deleted the patch_readme branch April 12, 2022 08:04
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

Successfully merging this pull request may close these issues.

4 participants