diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2016-10-24 17:42:22 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-10-24 10:54:11 -0700 |
commit | 2c49f7ffb3063fdccccf2a038ab2eee66e7395e4 (patch) | |
tree | f4102aab046ebef724d75da52dbb52008c5cd3f1 /diffcore-order.c | |
parent | commit: fix empty commit creation when there's no changes but ita entries (diff) | |
download | tgif-2c49f7ffb3063fdccccf2a038ab2eee66e7395e4.tar.xz |
commit: don't be fooled by ita entries when creating initial commit
ita entries are dropped at tree generation phase. If the entire index
consists of just ita entries, the result would be a a commit with no
entries, which should be caught unless --allow-empty is specified. The
test "!!active_nr" is not sufficient to catch this.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diffcore-order.c')
0 files changed, 0 insertions, 0 deletions