Commit 69e020a
committed
is_kept_pack(): final clean-up
Now is_kept_pack() is just a member lookup into a structure, we can write
it as such.
Also rewrite the sole caller of has_sha1_kept_pack() to switch on the
criteria the callee uses (namely, revs->kept_pack_only) between calling
has_sha1_kept_pack() and has_sha1_pack(), so that these two callees do not
have to take a pointer to struct rev_info as an argument.
This removes the header file dependency issue temporarily introduced by
the earlier commit, so we revert changes associated to that as well.
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 03a9683 commit 69e020a
File tree
5 files changed
+13
-21
lines changed5 files changed
+13
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1915 | 1915 | | |
1916 | 1916 | | |
1917 | 1917 | | |
1918 | | - | |
| 1918 | + | |
1919 | 1919 | | |
1920 | 1920 | | |
1921 | 1921 | | |
| |||
1951 | 1951 | | |
1952 | 1952 | | |
1953 | 1953 | | |
1954 | | - | |
| 1954 | + | |
1955 | 1955 | | |
1956 | 1956 | | |
1957 | 1957 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| 569 | + | |
569 | 570 | | |
570 | 571 | | |
571 | 572 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1476 | 1476 | | |
1477 | 1477 | | |
1478 | 1478 | | |
1479 | | - | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
1480 | 1482 | | |
1481 | 1483 | | |
1482 | 1484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | 159 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
| |||
1858 | 1856 | | |
1859 | 1857 | | |
1860 | 1858 | | |
1861 | | - | |
1862 | | - | |
1863 | | - | |
1864 | | - | |
1865 | | - | |
1866 | 1859 | | |
1867 | | - | |
| 1860 | + | |
1868 | 1861 | | |
1869 | 1862 | | |
1870 | 1863 | | |
| |||
1876 | 1869 | | |
1877 | 1870 | | |
1878 | 1871 | | |
1879 | | - | |
| 1872 | + | |
1880 | 1873 | | |
1881 | 1874 | | |
1882 | 1875 | | |
| |||
1919 | 1912 | | |
1920 | 1913 | | |
1921 | 1914 | | |
1922 | | - | |
| 1915 | + | |
1923 | 1916 | | |
1924 | 1917 | | |
1925 | | - | |
1926 | | - | |
| 1918 | + | |
1927 | 1919 | | |
1928 | | - | |
| 1920 | + | |
1929 | 1921 | | |
1930 | 1922 | | |
1931 | 1923 | | |
| |||
2395 | 2387 | | |
2396 | 2388 | | |
2397 | 2389 | | |
2398 | | - | |
| 2390 | + | |
2399 | 2391 | | |
2400 | 2392 | | |
2401 | | - | |
| 2393 | + | |
2402 | 2394 | | |
2403 | 2395 | | |
2404 | 2396 | | |
| |||
0 commit comments