diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-06-10 10:44:43 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-06-19 14:14:45 -0700 |
commit | f49c2c22fef520fd69ff26869c26dc58a834de2c (patch) | |
tree | 56845e698524d15a6a51bcc1a83295059c376be8 /builtin-ls-remote.c | |
parent | diff.c: fix emit_line() again not to add extra line (diff) | |
download | tgif-f49c2c22fef520fd69ff26869c26dc58a834de2c.tar.xz |
racy-git: an empty blob has a fixed object name
We use size=0 as the magic token to say the entry is known to be racily
clean, but a sequence that does:
- update the path with a non-empty blob and write the index;
- update an unrelated path and write the index -- this smudges
the above entry;
- truncate the path to size zero.
would make both the size field for the path in the index and the size on
the filesystem zero. We should not mistake it as a clean index entry.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-ls-remote.c')
0 files changed, 0 insertions, 0 deletions