hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Busbey (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (HBASE-12387) committer guidelines should include patch signoff
Date Fri, 31 Oct 2014 14:14:34 GMT

     [ https://issues.apache.org/jira/browse/HBASE-12387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sean Busbey reassigned HBASE-12387:
-----------------------------------

    Assignee: Sean Busbey

> committer guidelines should include patch signoff
> -------------------------------------------------
>
>                 Key: HBASE-12387
>                 URL: https://issues.apache.org/jira/browse/HBASE-12387
>             Project: HBase
>          Issue Type: Task
>          Components: documentation
>            Reporter: Sean Busbey
>            Assignee: Sean Busbey
>
> Right now our guide for committers apply patches has them use {{git am}} without a signoff
flag. This works okay, but it misses adding the "signed-off-by" blurb in the commit message.
> Those messages make it easier to see at a glance with e.g. {{git log}} which committer
applied the patch.
> this section:
> {quote}
> The directive to use git format-patch rather than git diff, and not to use --no-prefix,
is a new one. See the second example for how to apply a patch created with git diff, and educate
the person who created the patch.
> {code}
> $ git checkout -b HBASE-XXXX
> $ git am ~/Downloads/HBASE-XXXX-v2.patch
> $ git checkout master
> $ git pull --rebase
> $ git cherry-pick <sha-from-commit>
> # Resolve conflicts if necessary or ask the submitter to do it
> $ git pull --rebase          # Better safe than sorry
> $ git push origin master
> $ git checkout branch-1
> $ git pull --rebase
> $ git cherry-pick <sha-from-commit>
> # Resolve conflicts if necessary
> $ git pull --rebase          # Better safe than sorry
> $ git push origin branch-1
> $ git branch -D HBASE-XXXX
> {code}
> {quote}
> Should be
> {quote}
> The directive to use git format-patch rather than git diff, and not to use --no-prefix,
is a new one. See the second example for how to apply a patch created with git diff, and educate
the person who created the patch.
> Note that the {{--signoff}} flag to {{git am}} will insert a line in the commit message
that the patch was checked by your author string. This addition to your inclusion as the commit's
committer makes your participation more prominent to users browsing {{git log}}.
> {code}
> $ git checkout -b HBASE-XXXX
> $ git am --signoff ~/Downloads/HBASE-XXXX-v2.patch
> $ git checkout master
> $ git pull --rebase
> $ git cherry-pick <sha-from-commit>
> # Resolve conflicts if necessary or ask the submitter to do it
> $ git pull --rebase          # Better safe than sorry
> $ git push origin master
> $ git checkout branch-1
> $ git pull --rebase
> $ git cherry-pick <sha-from-commit>
> # Resolve conflicts if necessary
> $ git pull --rebase          # Better safe than sorry
> $ git push origin branch-1
> $ git branch -D HBASE-XXXX
> {code}
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message