Wireshark-dev: Re: [Wireshark-dev] Wiki: Backporting A Change To A Release Branch

From: Pascal Quantin <pascal@xxxxxxxxxxxxx>
Date: Mon, 26 Sep 2022 22:12:47 +0200
Hi Chuck,

it works fine here:

~/wireshark/git$ git remote -v
downstream      git@xxxxxxxxxx:pquantin/wireshark.git (fetch)
downstream      git@xxxxxxxxxx:pquantin/wireshark.git (push)
upstream        git@xxxxxxxxxx:wireshark/wireshark.git (fetch)
upstream        git@xxxxxxxxxx:wireshark/wireshark.git (push)
~/wireshark/git$ git checkout -b test upstream/release-4.0
Branch 'test' set up to track remote branch 'release-4.0' from 'upstream'.
Switched to a new branch 'test'

Le lun. 26 sept. 2022 à 22:00, chuck c <bubbasnmp@xxxxxxxxx> a écrit :
wireshark$ git remote -v
downstream      git@xxxxxxxxxx:chuckcraft/wireshark.git (fetch)
downstream      git@xxxxxxxxxx:chuckcraft/wireshark.git (push)
upstream        git@xxxxxxxxxx:wireshark/wireshark.git (fetch)
upstream        git@xxxxxxxxxx:wireshark/wireshark.git (push)

wireshark$ git branch -r -l | grep -i upstream
  upstream/master

wireshark$ git checkout -b github_4_0_qt6 upstream/release-4.0
fatal: 'upstream/release-4.0' is not a commit and a branch 'github_4_0_qt6' cannot be created from it


On Mon, Sep 26, 2022 at 2:43 PM Jaap Keuter <jaap.keuter@xxxxxxxxx> wrote:
Hi,

Yes, the text is still relevant, in case you’re looking to back port a change from master to release-X.Y.

What you’re seem to be looking at is making a change in release-4.0 only.
So, checkout release-4.0 first. Then create a branch from that and put your change on there and push that.

Regards,
Jaap


On 26 Sep 2022, at 00:52, chuck c <bubbasnmp@xxxxxxxxx> wrote:

Is this section of the Wiki still accurate?

(substituting  "release-4.0" for "master-X.Y"

"Create and checkout a new branch with a name related to the type of change (e.g. the bug number you're fixing or the dissector you're working on):
  git checkout -b my-branch-name upstream/master-X.Y
where "master-X.Y" is the release branch to which to backport the change.

This creates a branch named "my-branch-name" based on the master-X.Y branch in the official repository."

Or how best to make a change to:
that doesn't apply to master.

thanks
chuckc
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
            mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe