author | Junio C Hamano <gitster@pobox.com> | |
Sat, 29 Nov 2008 03:56:34 +0000 (19:56 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 1 Dec 2008 01:59:19 +0000 (17:59 -0800) | ||
commit | 331fcb598ec0127fd89c992361bc573dcd3a4a63 | |
tree | a6ef30a49739d914475a5c4bba38d98d2b8a6cae | tree | snapshot |
parent | 388b2acd6e649145d4368a10cf4df5f5bbbac2c2 | commit | diff |
git add --intent-to-add: do not let an empty blob be committed by accident
Writing a tree out of an index with an "intent to add" entry is blocked.
This implies that you cannot "git commit" from such a state; however you
can still do "git commit -a" or "git commit $that_path".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Writing a tree out of an index with an "intent to add" entry is blocked.
This implies that you cannot "git commit" from such a state; however you
can still do "git commit -a" or "git commit $that_path".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c | diff | blob | history | |
builtin-write-tree.c | diff | blob | history | |
cache-tree.c | diff | blob | history | |
read-cache.c | diff | blob | history | |
t/t2203-add-intent.sh | diff | blob | history |