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

[PATCH] Use diff-cache --strict in gitdiff.sh

From
Jonas Fonseca <fonseca@diku.dk>
Date
Apr 24, 2005, 03:38 UTC
Message-ID
<20050424033824.GB23293@diku.dk>
In-Reply-To
<20050424033554.GA23293@diku.dk>
Use diff-cache --strict invokation to only show diff of changed files.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>

--- 2aaf94eae20acc451553766f3c063bc46cfa75c6/gitdiff.sh (mode:100755 sha1:1478a0cfb23a85c259eae1a36cf2a48597fbe8a2) +++ uncommitted/gitdiff.sh (mode:100755)

@@ -76,7 +76,7 @@
 	# FIXME: Update ret based on what did we match. And take "$@"
 	# to account after all.
 	ret=
-	diff-cache -r -z $tree | xargs -0 gitdiff-do "$tree" uncommitted "$filter"
+	diff-cache -r -z --strict $tree | xargs -0 gitdiff-do "$tree" uncommitted "$filter"
 
 	if [ "$id1" != " " ]; then
 		rm $GIT_INDEX_FILE
-- 
Jonas Fonseca
Previous: Jonas FonsecaNext: Linus Torvalds
Message 2 of 4 in “Add --strict switch to diff-cache to force SHA1 checking”
  1. Add --strict switch to diff-cache to force SHA1 checkingJonas Fonseca, Apr 24, 2005
  2. Use diff-cache --strict in gitdiff.shJonas Fonseca, Apr 24, 2005
  3. Linus TorvaldsApr 24, 2005
  4. fix segfault in fsck-cache (2nd attempt)Andreas Gal, Apr 24, 2005

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.