<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/MyFirstContribution.txt, branch v2.37.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.37.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.37.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2022-05-13T01:10:00Z</updated>
<entry>
<title>MyFirstContribution: drop PR description for GGG single-patch contributions</title>
<updated>2022-05-13T01:10:00Z</updated>
<author>
<name>Philippe Blain</name>
<email>levraiphilippeblain@gmail.com</email>
</author>
<published>2022-05-12T23:43:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4ec50080621f1072a51351cb0f93d1af15a3c531'/>
<id>urn:sha1:4ec50080621f1072a51351cb0f93d1af15a3c531</id>
<content type='text'>
By default, GitHub prefills the PR description using the commit message
for single-commit PRs. This results in a duplicate commit message below
the three-dash line if the contributor does not empty out the PR
description before submitting, which adds noise for reviewers.

Add a note to that effect in MyFirstContribution.txt.

This partly addresses:
https://github.com/gitgitgadget/gitgitgadget/issues/340

Signed-off-by: Philippe Blain &lt;levraiphilippeblain@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>MyFirstContribution: reference "The cover letter" in GitGitGadget section</title>
<updated>2022-05-13T01:10:00Z</updated>
<author>
<name>Philippe Blain</name>
<email>levraiphilippeblain@gmail.com</email>
</author>
<published>2022-05-12T23:43:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c2cd4b592f89c4d11570c815f80b1a45266e4939'/>
<id>urn:sha1:c2cd4b592f89c4d11570c815f80b1a45266e4939</id>
<content type='text'>
The "Sending Patches via GitGitGadget" section mentions that the PR
title and description will be used as the cover letter, but does not
explain what is a cover letter or what should be included in it.

Refer readers to the new "The cover letter" section added in a previous
commit.

Signed-off-by: Philippe Blain &lt;levraiphilippeblain@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>MyFirstContribution: reference "The cover letter" in "Preparing Email"</title>
<updated>2022-05-13T01:09:59Z</updated>
<author>
<name>Philippe Blain</name>
<email>levraiphilippeblain@gmail.com</email>
</author>
<published>2022-05-12T23:43:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e97d474c7a7ba5c5ed0cfa56e100a9b22feb69ff'/>
<id>urn:sha1:e97d474c7a7ba5c5ed0cfa56e100a9b22feb69ff</id>
<content type='text'>
The previous commit added a standalone section on the purpose of the
cover letter, drawing inspiration from the existing content of the
"Preparing Email" section.

Adjust "Preparing Email" to reference "The cover letter", to avoid
content duplication.

Also, use the imperative mode for the cover letter subject, as is done
in "The cover letter".

Signed-off-by: Philippe Blain &lt;levraiphilippeblain@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>MyFirstContribution: add standalone section on cover letter</title>
<updated>2022-05-13T01:09:59Z</updated>
<author>
<name>Philippe Blain</name>
<email>levraiphilippeblain@gmail.com</email>
</author>
<published>2022-05-12T23:43:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=afc8c92535749136e015ed8474b0db5613ad177d'/>
<id>urn:sha1:afc8c92535749136e015ed8474b0db5613ad177d</id>
<content type='text'>
An explanation of the purpose of the cover letter is included in the
"Sending Patches with git send-email" / "Preparing Email" section but is
missing from the "Sending Patches via GitGitGadget" section.

Add a standalone section "The cover letter" under the "Getting Started:
Anatomy of a Patch Series" header to explain what the cover letter is
used for and to draft the cover letter of the 'psuh' topic used in the
tutorial.

For now we mostly copy content from the "Sending Patches with git
send-email" section but do not adjust that section, nor the GGG section,
to reference the new section. This is done in following commits.

Also, adjust the "Preparing Email" Asciidoc anchor to avoid conflicts.

Signed-off-by: Philippe Blain &lt;levraiphilippeblain@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>MyFirstContribution: add "Anatomy of a Patch Series" section</title>
<updated>2022-05-13T01:09:59Z</updated>
<author>
<name>Philippe Blain</name>
<email>levraiphilippeblain@gmail.com</email>
</author>
<published>2022-05-12T23:43:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=489ef3ba57e4114c0e6c98cc71a038fdefa92527'/>
<id>urn:sha1:489ef3ba57e4114c0e6c98cc71a038fdefa92527</id>
<content type='text'>
Before describing how to send patches to the mailing list either with
GitGitGadget or 'git send-email', the MyFirstContribution tutorial
includes a small "Getting Ready to Share" section where the two
different methods are briefly introduced.

Use this section to also describe what a patch series looks like once
submitted, so that readers get an understanding of the end result before
diving into how to accomplish that end result.

Start by copying the "thread overview" section of a recent contribution
from the public-inbox web UI and explaining how each commit is a
separate mail, and point out the cover letter.

Subsequent commits will move the existing description of the purpose of
the cover letter from the 'git send-email' section to this "anatomy"
section.

Also, change the wording in the introductory paragraph to use
"contributions" instead of "patches", since this makes more sense when
talking about GitHub pull requests.

Signed-off-by: Philippe Blain &lt;levraiphilippeblain@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/tutorial-format-patch-base'</title>
<updated>2021-11-29T23:41:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-11-29T23:41:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9b96d91e94dabe32627eb1bf17edf057c6ef8e5c'/>
<id>urn:sha1:9b96d91e94dabe32627eb1bf17edf057c6ef8e5c</id>
<content type='text'>
Teach and encourage first-time contributors to this project to
state the base commit when they submit their topic.

* jc/tutorial-format-patch-base:
  MyFirstContribution: teach to use "format-patch --base=auto"
</content>
</entry>
<entry>
<title>MyFirstContribution: teach to use "format-patch --base=auto"</title>
<updated>2021-10-23T21:03:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2021-10-18T20:08:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0b45a41dc1bf973243935c1115b2a898fa89e6ef'/>
<id>urn:sha1:0b45a41dc1bf973243935c1115b2a898fa89e6ef</id>
<content type='text'>
Let's encourage first-time contributors to tell us what commit they
based their work on with the format-patch invocation.  As the
example already forks from origin/master and branch.autosetupmerge
by default records the upstream when the psuh branch was created, we
can use --base=auto for this.  Also, mention that the range of
commits can simply be given with `@{u}` if they are on the `psuh`
branch already.

As we are getting one more option on the command line, and spending
one paragraph each to explain them, let's reformat that part of the
description as a bulleted list.

Helped-by: Bagas Sanjaya &lt;bagasdotme@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>MyFirstContribution: Document --range-diff option when writing v2</title>
<updated>2021-09-22T21:25:05Z</updated>
<author>
<name>Glen Choo</name>
<email>chooglen@google.com</email>
</author>
<published>2021-09-22T20:22:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1cc31e15293f2a26d330fe15f236949071d2c316'/>
<id>urn:sha1:1cc31e15293f2a26d330fe15f236949071d2c316</id>
<content type='text'>
In the "Sending v2" section, readers are directed to create v2 patches
without using --range-diff. However, it is customary to include a
range-diff against the v1 patches as a reviewer aid.

Update the "Sending v2" section to suggest a simple workflow that uses
the --range-diff option. Also include some explanation for -v2 and
--range-diff to help the reader understand the importance.

Signed-off-by: Glen Choo &lt;chooglen@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>MyFirstContribution: link #git-devel to Libera Chat</title>
<updated>2021-06-09T00:22:54Z</updated>
<author>
<name>Atharva Raykar</name>
<email>raykar.ath@gmail.com</email>
</author>
<published>2021-06-08T19:06:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=91d2347033b72d53c222faeb474ae0d46c01065f'/>
<id>urn:sha1:91d2347033b72d53c222faeb474ae0d46c01065f</id>
<content type='text'>
Many of the regulars on #git-devel are now on Libera Chat, to the extent
that the community page now lists it as the IRC Channel[1]. This will
help new contributors find the right place, if they choose to ask
questions on `#git-devel`.

Relevant discussion on the IRC transition:
https://lore.kernel.org/git/CAJoAoZ=e62sceNpcR5L5zjsj177uczTnXjcAg+BbOoOkeH8vXQ@mail.gmail.com/

[1] https://git-scm.com/community

Signed-off-by: Atharva Raykar &lt;raykar.ath@gmail.com&gt;
Reviewed-by: Emily Shaffer &lt;emilyshaffer@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: remove support for GIT_TEST_GETTEXT_POISON</title>
<updated>2021-01-21T23:50:01Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-01-20T18:27:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d162b25f9568c0e874570dfdbdae74f767b6836b'/>
<id>urn:sha1:d162b25f9568c0e874570dfdbdae74f767b6836b</id>
<content type='text'>
This removes the ability to inject "poison" gettext() messages via the
GIT_TEST_GETTEXT_POISON special test setup.

I initially added this as a compile-time option in bb946bba761 (i18n:
add GETTEXT_POISON to simulate unfriendly translator, 2011-02-22), and
most recently modified to be toggleable at runtime in
6cdccfce1e0 (i18n: make GETTEXT_POISON a runtime option, 2018-11-08)..

The reason for its removal is that the trade-off of maintaining it
v.s. what it's getting us has long since flipped. When gettext was
integrated in 5e9637c6297 (i18n: add infrastructure for translating
Git with gettext, 2011-11-18) there was understandable concern on the
Git ML that in marking messages for translation en-masse we'd
inadvertently mark plumbing messages. The GETTEXT_POISON facility was
a way to smoke those out via our test suite.

Nowadays however we're done (or almost entirely done) with any marking
of messages for translation. New messages are usually marked by their
authors, who'll know whether it makes sense to translate them or
not. If not any errors in marking the messages are much more likely to
be spotted in review than in the the initial deluge of i18n patches in
the 2011-2012 era.

So let's just remove this. This leaves the test suite in a state where
we still have a lot of test_i18n, C_LOCALE_OUTPUT
etc. uses. Subsequent commits will remove those too.

The change to t/lib-rebase.sh is a selective revert of the relevant
part of f2d17068fd (i18n: rebase-interactive: mark comments of squash
for translation, 2016-06-17), and the comment in
t/t3406-rebase-message.sh is from c7108bf9ed (i18n: rebase: mark
messages for translation, 2012-07-25).

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
