[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