author | Junio C Hamano <gitster@pobox.com> | |
Tue, 14 Aug 2007 08:41:02 +0000 (01:41 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 15 Aug 2007 06:19:10 +0000 (23:19 -0700) | ||
commit | 1a9d7e9b484e77436edc7f5cacd39c24ec605e6d | |
tree | 3492597bfe86cd1f650d78fa21cf7dbe0e5bd91f | tree | snapshot |
parent | a44131181a13eb599ed35647709692b1699706eb | commit | diff |
attr.c: read .gitattributes from index as well.
This makes .gitattributes files to be read from the index when
they are not checked out to the work tree. This is in line with
the way we always allowed low-level tools to operate in sparsely
checked out work tree in a reasonable way.
It swaps the order of new file creation and converting the blob
to work tree representation; otherwise when we are in the middle
of checking out .gitattributes we would notice an empty but
unwritten .gitattributes file in the work tree and will ignore
the copy in the index.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This makes .gitattributes files to be read from the index when
they are not checked out to the work tree. This is in line with
the way we always allowed low-level tools to operate in sparsely
checked out work tree in a reasonable way.
It swaps the order of new file creation and converting the blob
to work tree representation; otherwise when we are in the middle
of checking out .gitattributes we would notice an empty but
unwritten .gitattributes file in the work tree and will ignore
the copy in the index.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
attr.c | diff | blob | history | |
entry.c | diff | blob | history | |
t/t0020-crlf.sh | diff | blob | history |