From: Junio C Hamano <gitster@pobox.com>
To: Taylor Blau <me@ttaylorr.com>
Cc: git@vger.kernel.org, Emily Shaffer <nasamuffin@google.com>,
Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Subject: Re: [PATCH v2] Documentation: mention the amlog in howto/maintain-git.txt
Date: Wed, 02 Oct 2024 12:47:29 -0700 [thread overview]
Message-ID: <xmqq8qv6l226.fsf@gitster.g> (raw)
In-Reply-To: <5cc8e2bcb88424d8dce526f518282e4b26a1760a.1727881364.git.me@ttaylorr.com> (Taylor Blau's message of "Wed, 2 Oct 2024 11:03:44 -0400")
Taylor Blau <me@ttaylorr.com> writes:
Now the policy explains what is done (i.e. amlog gives a mapping)
and for what purpose (i.e. we want to be able to go back to the
origin), "... is expected to" in the actual procedure is redundant.
In other words, the procedure section can focus on what is done
without repeating why.
> + The maintainer is expected to update refs/notes/amlog with a
> + mapping between the applied commit and the 'Message-Id'
> + corresponding to the e-mail which carried the patch.
I'd replace the above with something like:
Applying the e-mailed patches using "git am" automatically
records the mappings from Message-Id to resulting commit in
the "amlog" note. Periodically check that this is working
with "git show -s --notes=amlog $commit".
> + This mapping is created with the aid of the "post-applypatch" hook
"created" -> "maintained".
> + found in the 'todo' branch. That hook should be installed before
> + applying patches. It is also helpful to carry forward any relevant
> + amlog entries when rebasing, so the following config may be useful:
> +
> + [notes]
> + rewriteRef = refs/notes/amlog
> +
> + (note that this configuration is not read by 'cherry-pick').
"(note ...)" ->
Avoid "cherry-pick", as it does not propagate notes by design.
Use either "git commit --amend" or "git rebase" to make
corrections to an existing commit, even for a single-patch
topic.
> + Finally, take care that the amlog entries are pushed out during
> + integration cycles since external tools and contributors (in
> + addition to internal scripts) may rely on them.
The purpose of pushing amlog out does not need to be repeated here
in the procedure section.
Make sure that push refspec for refs/notes/amlog is in the
remote configuration for publishing repositories. A few
sample .git/config entries may look like this:
[remote "github2"]
url = https://github.com/git/git
fetch = +refs/heads/*:refs/remotes/github2/*
pushurl = github.com:git/git.git
push = refs/heads/maint:refs/heads/maint
push = refs/heads/master:refs/heads/master
push = refs/heads/next:refs/heads/next
push = +refs/heads/seen:refs/heads/seen
push = +refs/notes/amlog
[remote "github"]
url = https://github.com/gitster/git
pushurl = github.com:gitster/git.git
mirror
Other than that, nicely done.
Thanks for filling the gap in the documentation.
next prev parent reply other threads:[~2024-10-02 19:47 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-30 16:21 Linking topic merges to mailing list threads Emily Shaffer
2024-09-30 16:57 ` Konstantin Ryabitsev
2024-09-30 19:30 ` Junio C Hamano
2024-09-30 20:45 ` [PATCH] Documentation: mention the amlog in howto/maintain-git.txt Taylor Blau
2024-09-30 21:06 ` Kristoffer Haugsbakk
2024-10-02 15:04 ` Taylor Blau
2024-09-30 21:54 ` Junio C Hamano
2024-10-02 15:05 ` Taylor Blau
2024-10-02 15:03 ` [PATCH v2] " Taylor Blau
2024-10-02 19:47 ` Junio C Hamano [this message]
2024-10-03 1:09 ` Taylor Blau
2024-10-03 1:09 ` [PATCH v3] " Taylor Blau
2024-10-03 17:23 ` Junio C Hamano
2024-10-03 18:32 ` Ramsay Jones
2024-10-03 18:44 ` Taylor Blau
2024-09-30 20:41 ` Linking topic merges to mailing list threads Kristoffer Haugsbakk
2024-10-02 22:50 ` Eric Wong
2024-10-02 23:34 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqq8qv6l226.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=konstantin@linuxfoundation.org \
--cc=me@ttaylorr.com \
--cc=nasamuffin@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).