dir.c: optionally compute sha-1 of a .gitignore file
commit55fe6f51f41f254d3d87994d18bff04664aa013b
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 8 Mar 2015 10:12:24 +0000 (8 17:12 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Mar 2015 20:45:08 +0000 (12 13:45 -0700)
treeacfff44d68b75fb5b6a7b0b5d40f2fd23a74e35a
parent7a9409cb0104466eba32162f5bc4e5ab46130f02
dir.c: optionally compute sha-1 of a .gitignore file

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 <gitster@pobox.com>
Helped-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c
dir.h