Commit 3ab0fb0
sha1_file: set whence in storage-specific info fn
Move the setting of oi->whence to sha1_loose_object_info() and
packed_object_info().
This allows sha1_object_info_extended() to not need to know about the
delta base cache. This will be useful during a future refactoring in
which packfile-related functions, including the handling of the delta
base cache, will be moved to a separate file.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 4274c69 commit 3ab0fb0
1 file changed
+6
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2444 | 2444 | | |
2445 | 2445 | | |
2446 | 2446 | | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
2447 | 2450 | | |
2448 | 2451 | | |
2449 | 2452 | | |
| |||
2973 | 2976 | | |
2974 | 2977 | | |
2975 | 2978 | | |
| 2979 | + | |
2976 | 2980 | | |
2977 | 2981 | | |
2978 | 2982 | | |
| |||
3010 | 3014 | | |
3011 | 3015 | | |
3012 | 3016 | | |
3013 | | - | |
3014 | | - | |
| 3017 | + | |
3015 | 3018 | | |
3016 | | - | |
3017 | 3019 | | |
3018 | 3020 | | |
3019 | 3021 | | |
| |||
3036 | 3038 | | |
3037 | 3039 | | |
3038 | 3040 | | |
3039 | | - | |
3040 | | - | |
3041 | | - | |
3042 | | - | |
| 3041 | + | |
3043 | 3042 | | |
3044 | 3043 | | |
3045 | 3044 | | |
| |||
0 commit comments