Re: [PATCH 2/8] sha1_file: introduce has_object_file helper.

2015-06-10 Thread Duy Nguyen
On Tue, Jun 9, 2015 at 11:28 PM, brian m. carlson sand...@crustytoothpaste.net wrote: diff --git a/sha1_file.c b/sha1_file.c index 7e38148..09f7f03 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -3173,6 +3173,11 @@ int has_sha1_file(const unsigned char *sha1) return

Re: [PATCH 2/8] sha1_file: introduce has_object_file helper.

2015-06-10 Thread brian m. carlson
On Wed, Jun 10, 2015 at 04:59:58PM +0700, Duy Nguyen wrote: On Tue, Jun 9, 2015 at 11:28 PM, brian m. carlson sand...@crustytoothpaste.net wrote: diff --git a/sha1_file.c b/sha1_file.c index 7e38148..09f7f03 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -3173,6 +3173,11 @@ int

[PATCH 2/8] sha1_file: introduce has_object_file helper.

2015-06-09 Thread brian m. carlson
Add has_object_file, which is a wrapper around has_sha1_file, but for struct object_id. Signed-off-by: brian m. carlson sand...@crustytoothpaste.net --- cache.h | 3 +++ sha1_file.c | 5 + 2 files changed, 8 insertions(+) diff --git a/cache.h b/cache.h index 571c98f..fa1f067 100644 ---