public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Yumei Huang <yuhuang@redhat.com>
To: passt-dev@passt.top
Cc: sbrivio@redhat.com, david@gibson.dropbear.id.au, yuhuang@redhat.com
Subject: [PATCH] Add CONTRIBUTING.md
Date: Fri, 12 Sep 2025 15:54:23 +0800	[thread overview]
Message-ID: <20250912075423.19500-1-yuhuang@redhat.com> (raw)

Signed-off-by: Yumei Huang <yuhuang@redhat.com>
---
 CONTRIBUTING.md | 86 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 86 insertions(+)
 create mode 100644 CONTRIBUTING.md

diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..70e35b1
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,86 @@
+# Contributing to passt
+
+Thank you for your interest in contributing! This document explains how to prepare patches and participate in the email-based review process.
+
+## Workflow
+
+### 1. Clone the project
+
+    git clone git://passt.top/passt
+
+### 2. Create a Branch
+
+    cd passt
+    git checkout -b my-feature-branch
+
+Work on a separate branch instead of committing directly to `master`.
+
+### 3. Make Changes and Commit
+
+* Edit the source code or documentation.
+
+* Stage your changes:
+
+        git add <file1> <file2> ...
+
+* Commit with a clear message containing `Signed-off-by:` tag:
+
+        git commit -s    
+
+    Commit message format:
+
+        Subsystem: Brief summary (max ~50 chars)
+
+        More detailed explanation if needed, wrapped at 72 chars.
+
+        Signed-off-by: Your Name <author@email>
+
+    If there are some references, use "Links: " tag for simplicity.
+
+### 4. Generate Patches
+
+Use `git format-path` to generate patch(es):
+
+    git format-patch origin/master
+
+This will generate numbered patch files such as 0001-...patch, 0002-...patch, etc.
+
+If you send a series of patches, use the `--cover-letter` option with `git format-patch`:
+
+    git format-patch origin/main --cover-letter
+
+This will generate a cover letter besides your patches. You can edit the cover letter before sending.
+
+### 5. Send Patches
+
+Use `git send-email` to send patches directly to the mailing list:
+
+    git send-email --to=passt-dev@passt.top 000*.patch
+
+If there are CCs (e.g. maintainers, reviewers), you can add them with `--cc`:
+
+    git send-email --to=passt-dev@passt.top --cc=maintainer@example.com 000*.patch
+
+### 6. Responding to Review Feedback
+
+* Be open to feedback on both code and documentation.
+
+* Update your patch as needed, and regenerate patches:
+
+        git add <file1> <file2> ...
+        git commit --amend
+        git format-patch -v2 origin/master
+
+* Send the revised patches
+
+        git send-email --to=passt-dev@passt.top v2-000*.patch
+
+### 7. Tips and Best Practices
+
+* Keep changes focused and easy to review.
+
+* Test your changes thoroughly.
+
+* Include documentation updates if your change affects usage or APIs.
+
+Thank you for helping improve passt! Your contributions make a big difference.
-- 
@@ -0,0 +1,86 @@
+# Contributing to passt
+
+Thank you for your interest in contributing! This document explains how to prepare patches and participate in the email-based review process.
+
+## Workflow
+
+### 1. Clone the project
+
+    git clone git://passt.top/passt
+
+### 2. Create a Branch
+
+    cd passt
+    git checkout -b my-feature-branch
+
+Work on a separate branch instead of committing directly to `master`.
+
+### 3. Make Changes and Commit
+
+* Edit the source code or documentation.
+
+* Stage your changes:
+
+        git add <file1> <file2> ...
+
+* Commit with a clear message containing `Signed-off-by:` tag:
+
+        git commit -s    
+
+    Commit message format:
+
+        Subsystem: Brief summary (max ~50 chars)
+
+        More detailed explanation if needed, wrapped at 72 chars.
+
+        Signed-off-by: Your Name <author@email>
+
+    If there are some references, use "Links: " tag for simplicity.
+
+### 4. Generate Patches
+
+Use `git format-path` to generate patch(es):
+
+    git format-patch origin/master
+
+This will generate numbered patch files such as 0001-...patch, 0002-...patch, etc.
+
+If you send a series of patches, use the `--cover-letter` option with `git format-patch`:
+
+    git format-patch origin/main --cover-letter
+
+This will generate a cover letter besides your patches. You can edit the cover letter before sending.
+
+### 5. Send Patches
+
+Use `git send-email` to send patches directly to the mailing list:
+
+    git send-email --to=passt-dev@passt.top 000*.patch
+
+If there are CCs (e.g. maintainers, reviewers), you can add them with `--cc`:
+
+    git send-email --to=passt-dev@passt.top --cc=maintainer@example.com 000*.patch
+
+### 6. Responding to Review Feedback
+
+* Be open to feedback on both code and documentation.
+
+* Update your patch as needed, and regenerate patches:
+
+        git add <file1> <file2> ...
+        git commit --amend
+        git format-patch -v2 origin/master
+
+* Send the revised patches
+
+        git send-email --to=passt-dev@passt.top v2-000*.patch
+
+### 7. Tips and Best Practices
+
+* Keep changes focused and easy to review.
+
+* Test your changes thoroughly.
+
+* Include documentation updates if your change affects usage or APIs.
+
+Thank you for helping improve passt! Your contributions make a big difference.
-- 
2.47.0


                 reply	other threads:[~2025-09-12  7:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250912075423.19500-1-yuhuang@redhat.com \
    --to=yuhuang@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=passt-dev@passt.top \
    --cc=sbrivio@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).