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

[PATCH 0/5] Speeding up "git status" and "git diff --cached"

From
Junio C Hamano <gitster@pobox.com>
Date
May 23, 2009, 19:24 UTC
Message-ID
<1243106678-6343-1-git-send-email-gitster@pobox.com>

Here is a refined version of an earlier patch series to use cache-tree information to optimize comparison between the index with an existing commit.

Recently there was a discussion to auto-commit any change to the index that are going to be discarded to some kind of "trash" branch; I am not personally interested in writing a patch to do so, but this will also help such a feature by making it cheaper to see if there are differences worth saving.

Junio C Hamano (5):
  write-tree --ignore-cache-tree
  cache-tree.c::cache_tree_find(): simplify inernal API
  t4007: modernize the style
  Optimize "diff-index --cached" using cache-tree
  Avoid "diff-index --cached" optimization under --find-copies-harder
 builtin-write-tree.c |   12 ++++++--
 cache-tree.c         |   44 +++++++++++++++++++++++++++--
 cache-tree.h         |   10 ++++++-
 diff-lib.c           |    3 ++
 t/t4007-rename-3.sh  |   74 +++++++++++++++++++++++++-------------------------
 unpack-trees.c       |   17 +++++++++++
 unpack-trees.h       |    1 +
 7 files changed, 117 insertions(+), 44 deletions(-)
Next: Junio C Hamano
Message 1 of 7 in “Speeding up "git status" and "git diff --cached"”
  1. 0/5 Speeding up "git status" and "git diff --cached"Junio C Hamano, May 23, 2009
  2. 1/5 write-tree --ignore-cache-treeJunio C Hamano, May 23, 2009
  3. 2/5 cache-tree.c::cache_tree_find(): simplify inernal APIJunio C Hamano, May 23, 2009
  4. 3/5 t4007: modernize the styleJunio C Hamano, May 23, 2009
  5. 4/5 Optimize "diff-index --cached" using cache-treeJunio C Hamano, May 23, 2009
  6. 5/5 Avoid "diff-index --cached" optimization under --find-copies-harderJunio C Hamano, May 23, 2009
  7. Jeff KingMay 25, 2009

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.