ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

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

From: chuck c <bubbasnmp@xxxxxxxxx>
Date: Mon, 26 Sep 2022 15:00:03 -0500
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