Message ID | Zvj-DgHqtC30KjJe@ArchLinux (mailing list archive) |
---|---|
Headers | show |
Series | add ref content check for files backend | expand |
shejialuo <shejialuo@gmail.com> writes: > Because I do not sync the upstream for a long time. For this series, I > sync the latest upstream and generate the patch, it is based on > > 3857aae53f (Git 2.47-rc0, 2024-09-25) Does this help to reduce conflicts when merging the topic to say 'next' or 'seen'? If so, such a rebase and noting it in the cover letter message, like you just did, is very much appreciated. If not, please don't ;-). > And I don't think range-diff is useful, it is messy for the reviewers. > Actually, there are not so many logic changes in this new version. OK, so this needs a fresh full review. Thanks.
On Mon, Sep 30, 2024 at 11:57:19AM -0700, Junio C Hamano wrote: > shejialuo <shejialuo@gmail.com> writes: > > > Because I do not sync the upstream for a long time. For this series, I > > sync the latest upstream and generate the patch, it is based on > > > > 3857aae53f (Git 2.47-rc0, 2024-09-25) > > Does this help to reduce conflicts when merging the topic to say > 'next' or 'seen'? If so, such a rebase and noting it in the cover > letter message, like you just did, is very much appreciated. > > If not, please don't ;-). > Actually, I am sure that there is no conflicts after squashing the following two patches. <xmqqle0gzdyh.fsf_-_@gitster.g> <xmqqbk1cz69c.fsf@gitster.g> The reason why I just sync the upstream is that the build system (such as warning about unused parameters) and CIs are all changed. I will remember this. Thanks, Jialuo
From the discussion with Patrick in v5 and Junio in v4. I conclude the follow things: 1. "fsck_ref_report" should not be refactored to accept `NULL`. There would be only one situation where it will be a little bad (the content of a ref does not end with a newline). In the other situations, the message part will be useful, such as: refs/heads/garbage-branch: trailingRefContent: ' garbage'. refs/heads/escape: escapeReferent: referent 'xxx' is outside. Although for some messages, only use fsck message id is enough. But we could also specify the message. It's not harmful anyway. 2. The mapping from fsck message id to error case should be one to one. This is essentially important because the user could set the fsck error levels. If we use multiple to one, we will give the user a bad experience. We should avoid this. I will wait for more comments to ensure the next version will be better. Thanks, Jialuo