Re: [PATCH v2 4/5] Always check `parse_tree*()`'s return value
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 22, 2024, 14:08 UTC
- Message-ID
- <dbde46bc-501e-8433-0b8d-b83d0ca9e759@gmx.de>
- In-Reply-To
- <CAPig+cRK_2BWYkcgaZ1pMJJtztepeEJCwuevJNj6gJwRoJgF5g@mail.gmail.com>
Hi Eric,
On Wed, 7 Feb 2024, Eric Sunshine wrote:
Show 5 quoted lines
> On Wed, Feb 7, 2024 at 11:48 AM Johannes Schindelin via GitGitGadget > <gitgitgadget@gmail.com> wrote: > > Always check `parse_tree*()`'s return value > > If you happen to reroll for some reason, perhaps: s/Always/always/
Unless I am missing something we only ask the part of a oneline after an initial "<something>:" to be downcased.
At least all the "Merge branch [...]" commits are still capitalized and nobody complains ;-)
Ciao, Johannes
Show 12 quoted lines
> > > Otherwise we may easily run into serious crashes: For example, if we run > > `init_tree_desc()` directly after a failed `parse_tree()`, we are > > accessing uninitialized data or trying to dereference `NULL`. > > > > Note that the `parse_tree()` function already takes care of showing an > > error message. The `parse_tree_indirectly()` and > > `repo_get_commit_tree()` functions do not, therefore those latter call > > sites need to show a useful error message while the former do not. > > > > Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> >