Re: [PATCH 2/3] diff-lib.c: enable --shift-ita in index_differs_from()

2016-09-28 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > This function is basically "git diff --cached HEAD", It has three > callers: > > - One in builtin/commit.c, which uses it to determine if the index is >different from HEAD and go ahead making a new commit. > > - Two in sequencer.c, which use it to see if the

[PATCH 2/3] diff-lib.c: enable --shift-ita in index_differs_from()

2016-09-28 Thread Nguyễn Thái Ngọc Duy
This function is basically "git diff --cached HEAD", It has three callers: - One in builtin/commit.c, which uses it to determine if the index is different from HEAD and go ahead making a new commit. - Two in sequencer.c, which use it to see if the index is dirty. In the first case, if ita e