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

[PATCH 0/1] sparse-checkout: use extern for global variables

From
Derrick Stolee via GitGitGadget <gitgitgadget@gmail.com>
Date
Dec 31, 2019, 13:17 UTC
Message-ID
<pull.506.git.1577798268.gitgitgadget@gmail.com>

I noticed this issue when resolving conflicts with our VFS for Git-enabled branch in microsoft/git.

When I moved the global for core.sparseCheckout along with creating the global for core.sparseCheckoutCone, I dropped the "extern" by habit. (We are dropping these from function declarations, usually.) However, this means something different for variables, and could lead to bugs. I haven't found any, but it's better to be safe, right?

Thanks, -Stolee
Derrick Stolee (1):
  sparse-checkout: use extern for global variables
 cache.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
base-commit: 99c33bed562b41de6ce9bd3fd561303d39645048
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-506%2Fderrickstolee%2Fsparse-extern-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-506/derrickstolee/sparse-extern-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/506
-- 
gitgitgadget
Next: Derrick Stolee via GitGitGadget
Message 1 of 3 in “sparse-checkout: use extern for global variables”
  1. 0/1 sparse-checkout: use extern for global variablesDerrick Stolee via GitGitGadget, Dec 31, 2019
  2. 1/1 sparse-checkout: use extern for global variablesDerrick Stolee via GitGitGadget, Dec 31, 2019
  3. Junio C HamanoJan 2, 2020

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.