Re: [PATCH v2 2/4] cat-file: introduce the --filters option
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 24, 2016, 17:52 UTC
- Message-ID
- <xmqqeg5eqck6.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <xmqqmvk2qcv8.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 6 quoted lines
>> +test_expect_success 'setup ' ' >> + echo "*.txt eol=crlf diff=txt" >.gitattributes && >> + echo "hello" | append_cr >world.txt && >> + git add .gitattributes world.txt && > > git update-index --cacheinfo :world.txt,$EMPTY_BLOB,symlink &&
Sorry, last-minute-edit-gone-bad-without-proofreading. It should have been something like:
git update-index --add --cacheinfo 160000,$EMPTY_BLOB,symlink &&
or
sym=$(echo "hello" | git hash-objects --stdin -w) && git update-index --add --cacheinfo 160000,$sym,symlink &&