Re: [PATCH 3/4] line-log: convert to using diff_tree_sha1()

2014-02-06 Thread Junio C Hamano
Thomas Rast writes: > Kirill Smelkov writes: > >> Since diff_tree_sha1() can now accept empty trees via NULL sha1, we >> could just call it without manually reading trees into tree_desc and >> duplicating code. >> >> Cc: Thomas Rast >> Signed-off-by: Kirill Smelkov >> --- >> line-log.c | 26 +

Re: [PATCH 3/4] line-log: convert to using diff_tree_sha1()

2014-02-06 Thread Thomas Rast
Kirill Smelkov writes: > Since diff_tree_sha1() can now accept empty trees via NULL sha1, we > could just call it without manually reading trees into tree_desc and > duplicating code. > > Cc: Thomas Rast > Signed-off-by: Kirill Smelkov > --- > line-log.c | 26 ++ > 1 fi

[PATCH 3/4] line-log: convert to using diff_tree_sha1()

2014-02-05 Thread Kirill Smelkov
Since diff_tree_sha1() can now accept empty trees via NULL sha1, we could just call it without manually reading trees into tree_desc and duplicating code. Cc: Thomas Rast Signed-off-by: Kirill Smelkov --- line-log.c | 26 ++ 1 file changed, 2 insertions(+), 24 deletions(