Commit b6869f5
packfile: pass source to
When preparing a packfile we pass various pieces attached to the pack's
object database source via the `struct prepare_pack_data`. Refactor this
code to instead pass in the source directly. This reduces the number of
variables we need to pass and allows for a subsequent refactoring where
we start to prepare the pack via the source.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>prepare_pack()
1 parent 9a37c88 commit b6869f5
1 file changed
+5
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
975 | 975 | | |
976 | 976 | | |
977 | 977 | | |
978 | | - | |
| 978 | + | |
979 | 979 | | |
980 | | - | |
981 | | - | |
982 | 980 | | |
983 | 981 | | |
984 | 982 | | |
| |||
988 | 986 | | |
989 | 987 | | |
990 | 988 | | |
991 | | - | |
| 989 | + | |
992 | 990 | | |
993 | | - | |
994 | | - | |
| 991 | + | |
| 992 | + | |
995 | 993 | | |
996 | 994 | | |
997 | 995 | | |
| |||
1020 | 1018 | | |
1021 | 1019 | | |
1022 | 1020 | | |
1023 | | - | |
1024 | | - | |
| 1021 | + | |
1025 | 1022 | | |
1026 | | - | |
1027 | 1023 | | |
1028 | 1024 | | |
1029 | 1025 | | |
| |||
0 commit comments