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

[PATCH 1/5] advice.h: don't indent top-level enum

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

Fix a style nit introduced in b3b18d16213 (advice: revamp advise API, 2020-03-02) and remove the leading whitespace before "enum".

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
---
 advice.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/advice.h b/advice.h
index 601265fd107..694219f5cb2 100644
--- a/advice.h
+++ b/advice.h
@@ -12,7 +12,7 @@ struct string_list;
  * Add the new config variable to Documentation/config/advice.txt.
  * Call advise_if_enabled to print your advice.
  */
- enum advice_type {
+enum advice_type {
 	ADVICE_ADD_EMBEDDED_REPO,
 	ADVICE_ADD_EMPTY_PATHSPEC,
 	ADVICE_ADD_IGNORED_FILE,
-- 
2.33.0.1404.g7bcfc82b295
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 3 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.