git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/5] advice API: simplification, small fixes, readability

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Oct 4, 2021, 01:58 UTC
Message-ID
<cover-0.5-00000000000-20211004T015432Z-avarab@gmail.com>

A follow-up to recent advice.[ch] improvements in fd0d7036e0d (Merge branch 'ab/retire-advice-config', 2021-09-10). There are no in-flight additions of new advice variables, and this doesn't conflict with "seen". So now seems like a good time to submit this.

The API carried some complexity due to needing to alias one of the variables, which goes away in 3/5, 4/5 then further reduces boilerplate.

Ævar Arnfjörð Bjarmason (5):
  advice.h: don't indent top-level enum
  advice output: emit empty lines as "hint:", not "hint: "
  advice.[ch]: remove advice.pushNonFastForward alias
  advice API: revamp the API, again
  advice.[ch]: sort enum fields in alphabetical order
 advice.c                                    | 100 +++++++++-----------
 advice.h                                    |   5 +-
 contrib/mw-to-git/git-remote-mediawiki.perl |   2 +-
 t/t7004-tag.sh                              |   4 +-
 4 files changed, 51 insertions(+), 60 deletions(-)
-- 
2.33.0.1404.g7bcfc82b295
Next: Ævar Arnfjörð Bjarmason
Message 1 of 6 in “advice API: simplification, small fixes, readability”
  1. 0/5 advice API: simplification, small fixes, readabilityÆvar Arnfjörð Bjarmason, Oct 4, 2021
  2. 2/5 advice output: emit empty lines as "hint:", not "hint: "Ævar Arnfjörð Bjarmason, Oct 4, 2021
  3. 1/5 advice.h: don't indent top-level enumÆvar Arnfjörð Bjarmason, Oct 4, 2021
  4. 3/5 advice.[ch]: remove advice.pushNonFastForward aliasÆvar Arnfjörð Bjarmason, Oct 4, 2021
  5. 4/5 advice API: revamp the API, againÆvar Arnfjörð Bjarmason, Oct 4, 2021
  6. 5/5 advice.[ch]: sort enum fields in alphabetical orderÆvar Arnfjörð Bjarmason, Oct 4, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.