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

[PATCH v2 0/3] cherry-abbrev

From
Erik Faye-Lund <kusmabite@googlemail.com>
Date
Mar 20, 2010, 18:55 UTC
Message-ID
<1269111329-5896-1-git-send-email-kusmabite@gmail.com>
This is the second round of ef/cherry-abbrev.

1/3 is the same as last round, but with the corrections suggested by René Scharfe.

2/3 isn't strictly needed, but it makes two call-sites for f_u_a more consistent with the others.

3/3 fixes the gains back the performance that was lost in 2/3:
Best of five runs of "git ls-tree v1.6.5" in a loop:

without 3/3: real 0m0.082s user 0m0.040s sys 0m0.036s

with 3/3: real 0m0.074s user 0m0.040s sys 0m0.040s

Erik Faye-Lund (3):
  cherry: support --abbrev option
  ls: remove redundant logic
  find_unique_abbrev: early out without a memcpy
 builtin/log.c      |   39 +++++++++++++++++++++------------------
 builtin/ls-files.c |    7 ++-----
 builtin/ls-tree.c  |    6 ++----
 sha1_name.c        |    4 ++--
 4 files changed, 27 insertions(+), 29 deletions(-)
Next: Erik Faye-Lund
Message 1 of 6 in “cherry-abbrev”
  1. 0/3 cherry-abbrevErik Faye-Lund, Mar 20, 2010
  2. 1/3 cherry: support --abbrev optionErik Faye-Lund, Mar 20, 2010
  3. 2/3 ls: remove redundant logicErik Faye-Lund, Mar 20, 2010
  4. 3/3 find_unique_abbrev: early out without a memcpyErik Faye-Lund, Mar 20, 2010
  5. Junio C HamanoMar 21, 2010
  6. Erik Faye-LundMar 21, 2010

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.