[PATCH 01/24] dir.c: optionally compute sha-1 of a .gitignore file

2015-03-08 Thread Nguyễn Thái Ngọc Duy
This is not used anywhere yet. But the goal is to compare quickly if a .gitignore file has changed when we have the SHA-1 of both old (cached somewhere) and new (from index or a tree) versions. Helped-by: Junio C Hamano Helped-by: Torsten Bögershausen Signed-off-by: Nguyễn Thái Ngọc Duy Signed-

Re: [PATCH 01/24] dir.c: optionally compute sha-1 of a .gitignore file

2015-02-16 Thread Junio C Hamano
Duy Nguyen writes: > On Thu, Feb 12, 2015 at 4:23 AM, Junio C Hamano wrote: > ... >> If you want to detect the content changes across working tree, index >> and the tree objects by reusing hash_sha1_file(), however, you must >> not feed the checked out (aka "smudged") representation to it. >> Yo

Re: [PATCH 01/24] dir.c: optionally compute sha-1 of a .gitignore file

2015-02-16 Thread Duy Nguyen
On Thu, Feb 12, 2015 at 4:23 AM, Junio C Hamano wrote: > Nguyễn Thái Ngọc Duy writes: > >> -int add_excludes_from_file_to_list(const char *fname, >> -const char *base, >> -int baselen, >> -struct excl

Re: [PATCH 01/24] dir.c: optionally compute sha-1 of a .gitignore file

2015-02-11 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > -int add_excludes_from_file_to_list(const char *fname, > -const char *base, > -int baselen, > -struct exclude_list *el, > -int check_inde

[PATCH 01/24] dir.c: optionally compute sha-1 of a .gitignore file

2015-02-08 Thread Nguyễn Thái Ngọc Duy
This is not used anywhere yet. But the goal is to compare quickly if a .gitignore file has changed when we have the SHA-1 of both old (cached somewhere) and new (from index or a tree) versions. Helped-by: Junio C Hamano Helped-by: Torsten Bögershausen Signed-off-by: Nguyễn Thái Ngọc Duy Signed-

[PATCH 01/24] dir.c: optionally compute sha-1 of a .gitignore file

2015-01-20 Thread Nguyễn Thái Ngọc Duy
This is not used anywhere yet. But the goal is to compare quickly if a .gitignore file has changed when we have the SHA-1 of both old (cached somewhere) and new (from index or a tree) versions. Helped-by: Junio C Hamano Helped-by: Torsten Bögershausen Signed-off-by: Nguyễn Thái Ngọc Duy Signed-