Re: [hatari-devel] HDC code update patch |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] HDC code update patch
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Mon, 14 Mar 2022 19:44:48 +0100
- Authentication-results: strato.com; dkim=none
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1647283488; s=strato-dkim-0002; d=seimet.de; h=In-Reply-To:References:Message-ID:Subject:To:From:Date:Cc:Date:From: Subject:Sender; bh=NESRVX1WDOUAe7osCUIa1jfZBqsPjww0ONFATJ32UH0=; b=MOzl/wiEyYgiNAos8T6Q40A/bAePiPykPZ9rBHOM06nzuykj47r1o0hzI5rZcPW2iE Ylv/XkZ1dsoClZB3cLKZDEPpAWMcusA9C60A5q68Ti1ihppSgDayrpBuMCCBwpmFRw2X uhFSe8HmEpg0mQkuKFzY9jR9DEn2cPm5wl5oD5Z+hE5735GBq1SV1s7JKJ3nNwtmdFCi ZWrV8UfuR3BkHdTewxjGBUdby25hRLI4q9BOMSrW9eegJXm+4B1FLBGysNvsQmtl/y5I x/d8pJaNQntZLTm2zkNXqfYUykH+EZ/pcRDLZOdvwQuc9999c1qUI06O+hCJ1ROj6Z3O CRbg==
Hi,
Does it have to be this complicated? I have been working with several
projects using git, also in my job, but this is the most complicated
approach I have seen so far ;-).
Is there a git repository I can clone, so that I can raise a PR against my
changes? This also retains the other and has other advantages.
Best regards
Uwe
> Hi,
>
> On 14.3.2022 15.34, Uwe Seimet wrote:
> > The attached patch contains some minor updates for hdc.c. Essentially
> > comments were updated and the opcode evaluation uses existing constants
> > instead of magic values in some places. I also removed unused opcode
> > constants.
>
> Could you send these as commits generated with something like:
> "git format-patch origin/master"
>
> or e.g. "git format-patch HEAD^" for the last patch in your tree.
>
>
> That way the commit messages, author etc would automatically there when
> patches are applied with something like "git am 0*.patch".
>
>
> Then later, if commit was modified before it was applied, and you cannot
> rebase on the upsteam version, you can remove your own versions with
> something like "git reset hard HEAD^" (careful, that removes all traces
> of your last commit), or do droping interactively with "git rebase -i
> origin/master", before you pull upstream version.
>
>
>
> Main reason for this is that I'd like your commit message to tell reason
> for the functional changes you did not mention:
> - else if (ctr->opcode == 0x05 || (ctr->opcode >= 0x20 && ctr->opcode <=
> 0x7d)) {
> + else if (ctr->opcode >= 0x20 && ctr->opcode <= 0x7d) {
> ...
> - else if (ctr->opcode >= 0x60)
> + else if (ctr->opcode >= 0x60 && ctr->opcode != HD_REPORT_LUNS)
>
> (If it e.g. fixes your earlier commit, it would be nice to give ID for
> the fixed commit in the commit message.)
>
>
> - Eero
>
>