Commit b8431b0
committed
has_sha1_kept_pack(): take "struct rev_info"
Its "ignore_packed" parameter always comes from struct rev_info. This
patch makes the function take a pointer to the surrounding structure, so
that the refactoring in the next patch becomes easier to review.
There is an unfortunate header file dependency and the easiest workaround
is to temporarily move the function declaration from cache.h to
revision.h; this will be moved back to cache.h once the function loses
this "ignore_packed" parameter altogether in the later part of the
series.
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent cd673c1 commit b8431b0
4 files changed
+12
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
569 | | - | |
570 | 569 | | |
571 | 570 | | |
572 | 571 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1486 | 1486 | | |
1487 | 1487 | | |
1488 | 1488 | | |
1489 | | - | |
| 1489 | + | |
1490 | 1490 | | |
1491 | 1491 | | |
1492 | 1492 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
161 | 163 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
1875 | 1877 | | |
1876 | 1878 | | |
1877 | 1879 | | |
1878 | | - | |
| 1880 | + | |
1879 | 1881 | | |
1880 | 1882 | | |
1881 | 1883 | | |
| |||
1887 | 1889 | | |
1888 | 1890 | | |
1889 | 1891 | | |
1890 | | - | |
| 1892 | + | |
1891 | 1893 | | |
1892 | | - | |
| 1894 | + | |
1893 | 1895 | | |
1894 | 1896 | | |
1895 | 1897 | | |
| |||
1941 | 1943 | | |
1942 | 1944 | | |
1943 | 1945 | | |
1944 | | - | |
| 1946 | + | |
1945 | 1947 | | |
1946 | | - | |
| 1948 | + | |
1947 | 1949 | | |
1948 | 1950 | | |
1949 | 1951 | | |
| |||
2413 | 2415 | | |
2414 | 2416 | | |
2415 | 2417 | | |
2416 | | - | |
| 2418 | + | |
2417 | 2419 | | |
2418 | 2420 | | |
2419 | | - | |
| 2421 | + | |
2420 | 2422 | | |
2421 | 2423 | | |
2422 | 2424 | | |
| |||
0 commit comments