0

We use GIT to maintain an open source code(GPLV2) for our Application. Sometimes we need to introduce patch from community when find bugs.

I wonder to know:

  1. Can we modify the author when commit patch to our GIT repositories? We want to keep upstream info (author, URL, and patch's log) in commit info.
  2. Do we need to distinguish this two scenes: patch has to be modified and patch has no modification?
  • "Can we modify the author...". Only if the author agrees, eg via you requiring patch contributors to sign a Contributor License Agreement (CLA) before you'll accept their contributions. – David Arno Jun 6 '18 at 15:33
  • 1
    What are your policies and bylaws? Under what terms do your users understand the patches would be submitted? Do you frown on author comments like some open source groups (i.e. the code belongs to the project rather than individual contributors)? There are certain clauses in your license which require attribution, but that can be at the project level rather than the individual level. It's up to your project and the managing group to set those policies. – Berin Loritsch Jun 6 '18 at 16:11
  • this doesn't appear to be a software engineering question. – esoterik Jun 6 '18 at 20:59
  • @esoterik, see softwareengineering.meta.stackexchange.com/q/6311/3965. This question is about git the workflow and is therefore on topic here. – Karl Bielefeldt Jun 6 '18 at 21:54
  • @KarlBielefeldt I see how the questions mentioned in your link would be on-topic, I thought the scope if this was more how to use git, than using git in a wider context, but it is is close to the line. – esoterik Jun 6 '18 at 22:25
4

Git differentiates between committer and author for this very purpose. You can specify the --author tag when committing to show the person who actually wrote the change, and it will still remember you as the person who actually committed it. This allows you to give appropriate credit where credit is due.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.