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

[PATCH 0/1] unpack-trees: exit check_updates() early if updates are not wanted

From
Elijah Newren via GitGitGadget <gitgitgadget@gmail.com>
Date
Jan 3, 2020, 21:42 UTC
Message-ID
<pull.686.git.git.1578087730.gitgitgadget@gmail.com>

In trying to understand check_updates(), I found I was able to simplify the function by making it exit early when updates are not wanted.

Elijah Newren (1):
  unpack-trees: exit check_updates() early if updates are not wanted
 unpack-trees.c | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)
base-commit: 8679ef24ed64018bb62170c43ce73e0261c0600a
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-686%2Fnewren%2Fsimplify-check-updates-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-686/newren/simplify-check-updates-v1
Pull-Request: https://github.com/git/git/pull/686
-- 
gitgitgadget
Next: Elijah Newren via GitGitGadget
Message 1 of 7 in “unpack-trees: exit check_updates() early if updates are not wanted”
  1. 0/1 unpack-trees: exit check_updates() early if updates are not wantedElijah Newren via GitGitGadget, Jan 3, 2020
  2. 1/1 unpack-trees: exit check_updates() early if updates are not wantedElijah Newren via GitGitGadget, Jan 3, 2020
  3. Junio C HamanoJan 4, 2020
  4. Elijah NewrenJan 5, 2020
  5. 0/1 unpack-trees: exit check_updates() early if updates are not wantedElijah Newren via GitGitGadget, Jan 7, 2020
  6. 1/1 unpack-trees: exit check_updates() early if updates are not wantedElijah Newren via GitGitGadget, Jan 7, 2020
  7. Junio C HamanoJan 7, 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.