@matheusbsbs / matheus-bagliano / commits / 8ae92e6389
Fork 0

rename diff_free_filespec_data_large() to diff_free_filespec_blob()

Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Oct 2, 2007 at 21:01 UTC 8ae92e63895000ff9b12046325ae381f3c17d414
3 files changed +5 -5
diff.c
+2 -2
@@ -1675,7 +1675,7 @@ int diff_populate_filespec(struct diff_filespec *s, int size_only)
1675 return 0;
1676 }
1677
1678 -void diff_free_filespec_data_large(struct diff_filespec *s)
1678 +void diff_free_filespec_blob(struct diff_filespec *s)
1679 {
1680 if (s->should_free)
1681 free(s->data);
@@ -1690,7 +1690,7 @@ void diff_free_filespec_data_large(struct diff_filespec *s)
1690
1691 void diff_free_filespec_data(struct diff_filespec *s)
1692 {
1693 - diff_free_filespec_data_large(s);
1693 + diff_free_filespec_blob(s);
1694 free(s->cnt_data);
1695 s->cnt_data = NULL;
1696 }
diffcore-rename.c
+2 -2
@@ -378,10 +378,10 @@ void diffcore_rename(struct diff_options *options)
378 m->score = estimate_similarity(one, two,
379 minimum_score);
380 m->name_score = basename_same(one, two);
381 - diff_free_filespec_data_large(one);
381 + diff_free_filespec_blob(one);
382 }
383 /* We do not need the text anymore */
384 - diff_free_filespec_data_large(two);
384 + diff_free_filespec_blob(two);
385 dst_cnt++;
386 }
387 /* cost matrix sorted by most to least similar pair */
diffcore.h
+1 -1
@@ -48,7 +48,7 @@ extern void fill_filespec(struct diff_filespec *, const unsigned char *,
48
49 extern int diff_populate_filespec(struct diff_filespec *, int);
50 extern void diff_free_filespec_data(struct diff_filespec *);
51 -extern void diff_free_filespec_data_large(struct diff_filespec *);
51 +extern void diff_free_filespec_blob(struct diff_filespec *);
52 extern int diff_filespec_is_binary(struct diff_filespec *);
53
54 struct diff_filepair {