Files
git/builtin
Nguyễn Thái Ngọc Duy 018ec3c820 commit: fix empty commit creation when there's no changes but ita entries
If i-t-a entries are present and there is no change between the index
and HEAD i-t-a entries, index_differs_from() still returns "dirty, new
entries" (aka, the resulting commit is not empty), but cache-tree will
skip i-t-a entries and produce the exact same tree of current
commit.

index_differs_from() is supposed to catch this so we can abort
git-commit (unless --no-empty is specified). Update it to optionally
ignore i-t-a entries when doing a diff between the index and HEAD so
that it would return "no change" in this case and abort commit.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-10-24 10:48:23 -07:00
..
2016-09-19 13:47:19 -07:00
2016-09-21 15:15:19 -07:00
2016-09-22 13:42:18 -07:00
2016-09-21 15:15:24 -07:00
2016-08-03 15:10:28 -07:00
2016-08-30 16:09:41 -07:00
2016-09-26 16:09:17 -07:00
2016-07-13 11:24:10 -07:00
2016-07-14 15:50:41 -07:00
2016-09-21 15:15:28 -07:00
2016-07-25 14:13:33 -07:00
2016-07-13 11:24:10 -07:00
2016-04-29 12:59:09 -07:00