git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Recommended work flow with git to send in patches

From
TSTong Sun <suntong@cpan.org>
Date
Jul 27, 2010, 15:31 UTC
Message-ID
<AANLkTiksAOpFG3vGVGcbeZ0NcpQ5FbDjnZ7yDxUsAY_r@mail.gmail.com>
Hi,

Compressing my "life long story" into a single question -- what's the recommended work flow to work with git and send in patches, when upstream might be slow in respond, and require squashing relevant patches into one?

You can use my following message as a start point, and please answer my last question, which I've been asking twice (in different ways) with no answer.

Please CC me when replying.
Thanks
---------- Forwarded message ----------
From: Tong Sun <suntong@cpan.org>
Date: Sun, Jun 6, 2010 at 8:56 PM
Subject: Working with git and sending in patches
To: grml-devel@ml.grml.org
Hi,

Just trying to put all jigsaw puzzle together here. Please correct me if I'm wrong.

First of all, philosophy for version control with git:

. While developing, small/independent commits are good thing, so that it's easy to decouple different changes.

. But when integrating something in a main branch, commits should contain all logical/related changes.

Steps (using grml-debootstrap as an example):
- do initial git pull into grml-debootstrap
  git pull git://git.grml.org/grml-debootstrap master
- Go into grml-debootstrap and start a new branch
  git checkout -b t/my-working-branch
- work on the code, commit, hack, commit, hack, commit -- commit often
& commit small
- when AOK and need to integrate patches into main branch, squash all
patches into one
  git rebase -i origin/master
- send in patches via email (to grml-devel@ml.grml.org)
  git format-patch origin
  git send-email --to grml-devel@ml.grml.org ...
Please correct me if anything above is wrong.

Now, question, having done above, if I start to work some logically unrelated patches, what steps should I take? (I don't want 'git rebase' to pick up patches that I've already sent in).

Next: Ævar Arnfjörð Bjarmason
Message 1 of 14 in “Recommended work flow with git to send in patches”
  1. Tong SunJul 27, 2010
  2. Ævar Arnfjörð BjarmasonJul 27, 2010
  3. Tong SunJul 27, 2010
  4. Ramkumar RamachandraJul 27, 2010
  5. Tong SunJul 27, 2010
  6. Ramkumar RamachandraJul 27, 2010
  7. Jakub NarebskiJul 27, 2010
  8. Ramkumar RamachandraJul 27, 2010
  9. Jakub NarebskiJul 27, 2010
  10. Tong SunJul 27, 2010
  11. Jakub NarebskiJul 28, 2010
  12. Tong SunJul 28, 2010
  13. Jakub NarebskiJul 28, 2010
  14. Tong SunJul 28, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.